@Override
  public CacheStatistics getStatistics() {
    // prefer entry destroyed exception over statistics disabled exception
    checkEntryDestroyed();
    checkTX();
    if (!localRegion.statisticsEnabled) {
      throw new StatisticsDisabledException(
          String.format("Statistics disabled for region '%s'",
              localRegion.getFullPath()));
    }
    // On a TXEntry stats are non-existent so return a dummy impl
    return new CacheStatistics() {
      @Override
      public long getLastModifiedTime() {
        return (getRegion() != null) ? ((LocalRegion) getRegion()).cacheTimeMillis()
            : System.currentTimeMillis();
      }

      @Override
      public long getLastAccessedTime() {
        return (getRegion() != null) ? ((LocalRegion) getRegion()).cacheTimeMillis()
            : System.currentTimeMillis();
      }

      @Override
      public long getMissCount() {
        return 0;
      }

      @Override
      public long getHitCount() {
        return 0;
      }

      @Override
      public float getHitRatio() {
        return 0;
      }

      @Override
      public void resetCounts() {}
    };
  }
Create an Entry given a key. The returned Entry may or may not be destroyed
geode-core/src/main/java/org/apache/geode/internal/cache/TXEntry.java