public static Cache getAnyInstance() {
    return CacheFactoryStatics.getAnyInstance();
  }
Gets an arbitrary open instance of {@link Cache} produced by an earlier call to
{@link #create()}.

<p>
WARNING: To avoid risk of deadlock, do not invoke getAnyInstance() from within any
CacheCallback including CacheListener, CacheLoader, CacheWriter, TransactionListener,
TransactionWriter. Instead use EntryEvent.getRegion().getCache(),
RegionEvent.getRegion().getCache(), LoaderHelper.getRegion().getCache(), or
TransactionEvent.getCache().
<p>

@return arbitrary open instance of {@link Cache} produced by an earlier call to
        {@link #create()}
@throws CacheClosedException if a cache has not been created or the only created one is
        {@link Cache#isClosed closed}
geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java