@Deprecated
  public static GemFireCacheImpl getExisting() {
    GemFireCacheImpl result = getInstance();
    if (result != null && !result.isClosing) {
      return result;
    }
    if (result != null) {
      throw result.getCacheClosedException("The cache has been closed.");
    }
    throw new CacheClosedException("A cache has not yet been created.");
  }
Returns an existing instance. If a cache does not exist throws a cache closed exception.

@return the existing cache
@throws CacheClosedException if an existing cache can not be found.
@deprecated use DM.getExistingCache instead.
geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java