code: private IEntityGroup instanceFromResultSet(ResultSet rs) throws SQLException, GroupsException {
          IEntityGroup eg = null;
  
          String key = rs.getString(1);
          String creatorID = rs.getString(2);
          Integer entityTypeID = rs.getInt(3);
          Class entityType = EntityTypesLocator.getEntityTypes().getEntityTypeFromID(entityTypeID);
          String groupName = rs.getString(4);
          String description = rs.getString(5);
  
          if (key != null) {
              eg = newInstance(key, entityType, creatorID, groupName, description);
          }
  
          return eg;
      }
docs: Find and return an instance of the group.
  
  @param rs the SQL result set
  @return IEntityGroup