docs: @Override
      public Set<Entity> getGroupsForMember(String memberName) {
          Set<Entity> groups = new HashSet<Entity>();
          if (StringUtils.isNotEmpty(memberName)) {
              EntityIdentifier[] identifiers =
                      GroupService.searchForEntities(
                              memberName,
                              GroupService.SearchMethod.DISCRETE,
                              EntityEnum.PERSON.getClazz());
              for (EntityIdentifier entityIdentifier : identifiers) {
                  if (entityIdentifier.getType().equals(EntityEnum.PERSON.getClazz())) {
                      IGroupMember groupMember = GroupService.getGroupMember(entityIdentifier);
                      if (memberName.equalsIgnoreCase(groupMember.getKey())) {
                          Iterator it = GroupService.findParentGroups(groupMember);
                          while (it.hasNext()) {
                              IEntityGroup g = (IEntityGroup) it.next();
                              Entity e =
                                      EntityFactory.createEntity(
                                              g, EntityEnum.getEntityEnum(g.getLeafType(), true));
                              groups.add(e);
                          }
                          return groups;
                      }
                  }
              }
          }
          return groups;
      }