@Override
  public Statistics[] findStatisticsByTextId(String textId) {
    List<Statistics> hits = new ArrayList<>();
    for (final Statistics s : statsList) {
      if (s.getTextId().equals(textId)) {
        hits.add(s);
      }
    }
    Statistics[] result = new Statistics[hits.size()];
    return hits.toArray(result);
  }
An abstract standalone implementation of {@link StatisticsFactory}. It can be used in contexts
that do not have the GemFire product or in vm's that do not have a distributed system nor a
gemfire connection.

@since GemFire 7.0
geode-core/src/main/java/org/apache/geode/internal/statistics/AbstractStatisticsFactory.java