private InternalCache getCache() {
    return (InternalCache) CacheFactory.getAnyInstance();
  }
This class is intermediate class to create PdxInstance.
geode-core/src/main/java/org/apache/geode/pdx/internal/json/PdxInstanceHelper.java