if (roles[i].getId().equals("visit")) {
visitorRole = roles[i].getId();
}
}
}
setParameter("roles", roleIds.toArray(new String[roleIds.size()]));
setParameter("visitorRole", visitorRole);
setParameter(SUB_CREDENTIALS, getSubtreeCredentials());
setParameter(PARENT_CREDENTIALS, getParentCredentials());