log.trace("removing role [" + roles[i] + "]");
}
try {
RoleManagerLocal roleManager = LookupUtil.getRoleManager();
roleManager.deleteRoles(whoami, ArrayUtils.unwrapArray(roles));
} catch (Exception e) {
log.trace("failed to remove roles");
RequestUtils.setError(request, "admin.role.error.RemoveRolePermission");
return returnFailure(request, mapping);
}