public Cache getCache() {
    if (cache != null) {
      boolean isReconnecting = cache.isReconnecting();
      if (isReconnecting) {
        Cache newCache = cache.getReconnectedCache();
        if (newCache != null) {
          cache = newCache;
        }
      }
    }
    return cache;
  }
Gets a reference to the {@code Cache} that was created by this {@code ServerLauncher}.

@return a reference to the Cache
@see Cache
geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java