public static Cache getInstance(DistributedSystem system) {
    return basicGetInstance(system, false);
  }
@throws CacheClosedException if a cache has not been created or the created one is
        {@link Cache#isClosed closed}
geode-core/src/main/java/org/apache/geode/internal/cache/CacheFactoryStatics.java