rolesToProcess.add(APILocator.getRoleAPI().loadCMSAnonymousRole());
}
while(!rolesToProcess.isEmpty()) {
Role r = rolesToProcess.poll();
if(r ==null) continue;
UserRoleCacheHelper h = new UserRoleCacheHelper(r.getId(),rids.contains(r.getId())?false:true);
helpers.add(h);
if(includeImplicitRoles || rids.contains(r.getId())){
roles.add(r);
}
if(r.getRoleChildren() != null && includeImplicitRoles)