code: public String lookupEntityName(Entity entity) {
          if (entity == null) {
              return null;
          }
          EntityEnum entityEnum = EntityEnum.getEntityEnum(entity.getEntityType());
          return lookupEntityName(entityEnum, entity.getId());
      }
docs: Convenience method that looks up the name of the given group member. Used for person types.
  
  @param entity Entity to look up
  @return groupMember's name or null if there's an error