}
}
} else if (gm.isEntity() && gm.getEntityType().equals(ROOT_GROUP.getEntityType())) {
// Ask the individual...
EntityIdentifier ei = gm.getUnderlyingEntityIdentifier();
Map<String,List<Object>> seed = new HashMap<String,List<Object>>();
List<Object> seedValue = new LinkedList<Object>();
seedValue.add(ei.getKey());
seed.put(IPerson.USERNAME, seedValue);
Map<String,List<Object>> attr = PersonDirectory.getPersonAttributeDao().getMultivaluedUserAttributes(seed);
// avoid NPEs and unnecessary IPerson creation
if (attr != null && !attr.isEmpty()) {
IPerson p = PersonFactory.createPerson();