getSession().getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
try {
ResourceServiceClient client =
new ResourceServiceClient(cookie, config, request.getSession());
client.changeRolePermissions(resourcePath, permissionInput);
} catch (Exception e) {
String msg = "Failed to change role permissions. " + e.getMessage();
log.error(msg, e);
throw new UIException(msg, e);