code: @Override
      public Iterator findParentGroups(IGroupMember gm) throws GroupsException {
          if (gm.isGroup()) {
              IEntityGroup group = (IEntityGroup) gm;
              return findParentGroups(group);
          } else {
              IEntity ent = (IEntity) gm;
              return findParentGroups(ent);
          }
      }
docs: Find the groups that this group member belongs to.
  
  @param gm the group member in question
  @return java.util.Iterator