public User[] getUsersWithRole(String roleId) throws ProcessingException {
List users = new ArrayList();
try {
Policy policy =
policyManager.getPolicy(accessController.getAccreditableManager(), getUrl());
UserManager userManager = accessController.getAccreditableManager().getUserManager();
User[] userArray = userManager.getUsers();
for (int i = 0; i < userArray.length; i++) {
Identity identity = new Identity();
identity.addIdentifiable(userArray[i]);
Role[] roles = policy.getRoles(identity);
for (int roleIndex = 0; roleIndex < roles.length; roleIndex++) {