@Override
  public CacheStatistics getStatistics() throws StatisticsDisabledException {
    checkEntryDestroyed();
    if (!regionEntry.hasStats() || !region.statisticsEnabled) {
      throw new StatisticsDisabledException(
          String.format("Statistics disabled for region ' %s '",
              region.getFullPath()));
    }
    return new CacheStatisticsImpl(regionEntry, region);
  }
Makes a copy, if copy-on-get is enabled, of the specified object.

@since GemFire 4.0
geode-core/src/main/java/org/apache/geode/internal/cache/EntrySnapshot.java