JsonUserAdminCmd.RoleRecordRsp jsonRsp = new JsonUserAdminCmd.RoleRecordRsp();
try {
// RBAC
AccessController.checkAuthorization(request, Action.createUser, null);
RoleAssignment role = ModelFactory.createRole(request, false, getServletContext(), null, null);
jsonRsp.setResult("OK");
jsonRsp.setRecord(role);
}
catch (ModelException ex) {
getServletContext().log("Role creation failure", ex);