protected String createSessionId(IPerson person) {
return RandomTokenGenerator.INSTANCE.generateRandomToken(8);
}
protected Set<String> getGroupsForUser(IPerson person) {
final IGroupMember member = GroupService.getGroupMember(person.getEntityIdentifier());
<BUG>final Set<String> groupKeys = new LinkedHashSet<String>();
for (final Iterator<IEntityGroup> groupItr = member.getAncestorGroups().iterator(); groupItr.hasNext();) {
final IGroupMember group = groupItr.next();</BUG>
final String groupKey = group.getKey();
if (IncludeExcludeUtils.included(groupKey, this.groupIncludes, this.groupExcludes)) {

protected String createSessionId(IPerson person) {
return RandomTokenGenerator.INSTANCE.generateRandomToken(8);
}
protected Set<String> getGroupsForUser(IPerson person) {
final IGroupMember member = GroupService.getGroupMember(person.getEntityIdentifier());
final Set<String> groupKeys = new LinkedHashSet<>();
for (IGroupMember group : member.getAncestorGroups()) {
final String groupKey = group.getKey();
if (IncludeExcludeUtils.included(groupKey, this.groupIncludes, this.groupExcludes)) {
