@Override
  public Statistics[] findStatisticsByTextId(String textId) {
    return allStatisticsInstances(withTextId(textId))
        .toArray(Statistics[]::new);
  }
Creates a {@code StatisticsRegistry} that uses the given factories to create {@code
StatisticsType}s and {@code Statistics} instances.

@param name the name of the registry
@param startTime the time at which the registry was started
@param typeFactory the factory to create {@code StatisticsType}s
@param osStatisticsFactory the factory to create OS statistics
@param atomicStatisticsFactory the factory to create atomic statistics
@param pidSupplier the IntSupplier to return this pid
geode-core/src/main/java/org/apache/geode/internal/statistics/StatisticsRegistry.java