throws ResourceException
{
String userId = getUserId(request);
try {
RoleTreeResourceResponse responseResource = new RoleTreeResourceResponse();
AuthorizationManager authzManager = getSecuritySystem().getAuthorizationManager("default");
if (Boolean.parseBoolean(request.getResourceRef().getQueryAsForm().getFirstValue("isRole"))) {
Role role = authzManager.getRole(userId);