@Override
  protected StatisticResource createStatisticResource(StatResource stat)
      throws org.apache.geode.admin.AdminException {
    StatisticResourceJmxImpl managedStatisticResource = null;

    synchronized (managedStatisticsResourcesMap) {
      /*
       * Ensuring that a single instance of Statistic Resource is created per StatResource.
       */
      StatisticResourceJmxImpl statisticResourceJmxImpl = managedStatisticsResourcesMap.get(stat);
      if (statisticResourceJmxImpl != null) {
        managedStatisticResource = statisticResourceJmxImpl;
      } else {
        managedStatisticResource = new StatisticResourceJmxImpl(stat, this);
        managedStatisticResource.getStatistics();// inits timer
        managedStatisticsResourcesMap.put(stat, managedStatisticResource);
      }
    }
    return managedStatisticResource;
  }
Override createStatisticResource by instantiating StatisticResourceJmxImpl if it was not
created earlier otherwise returns the same instance.

@param stat StatResource reference for which this JMX resource is to be created
@return StatisticResourceJmxImpl - JMX Implementation of StatisticResource
@throws AdminException if constructing StatisticResourceJmxImpl instance fails
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/CacheServerJmxImpl.java