@Deprecated
  public static GemFireCacheImpl getExisting(String reason) {
    GemFireCacheImpl result = getInstance();
    if (result == null) {
      throw new CacheClosedException(reason);
    }
    return result;
  }
Returns an existing instance. If a cache does not exist throws an exception.

@param reason the reason an existing cache is being requested.
@return the existing cache
@throws CacheClosedException if an existing cache can not be found.
@deprecated Please use {@link DistributionManager#getExistingCache()} instead.
geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java