code: public final SortedMap<String, MtasDataItem<T1, T2>> getList(boolean reduce)
        throws IOException {
      if (collectorType.equals(DataCollector.COLLECTOR_TYPE_LIST)) {
        if (reduce && startKey != null && endKey != null) {
          return list.subMap(startKey, endKey);
        } else {
          return list;
        }
      } else {
        throw new IOException("type " + collectorType + " not supported");
      }
    }
docs: Gets the list.
  
  @param reduce the reduce
  @return the list
  @throws IOException Signals that an I/O exception has occurred.