{
Collection<RoleType> roleTypes = identitySession.getRoleManager().
findRoleTypes(roleQuery.user, roleQuery.group, roleQuery.searchCriteria);
for (RoleType type : roleTypes)
{
mainResults.add(new SimpleRole(type, roleQuery.user, roleQuery.group));
}
return mainResults;
}
}
catch (Exception e)