code: @Override
      public IGroupMember getGroupMember(String key, Class type) throws GroupsException {
          IGroupMember gm = null;
          if (type == ICompositeGroupService.GROUP_ENTITY_TYPE) gm = findGroup(key);
          else gm = getEntity(key, type);
          return gm;
      }
docs: Returns an <code>IGroupMember</code> representing either a group or a portal entity. If the
  parm <code>type</code> is the group type, the <code>IGroupMember</code> is an <code>
  IEntityGroup</code> else it is an <code>IEntity</code>.