@Override
  public void saveCacheXmlForReconnect() {
    prepareForReconnect((pw) -> CacheXmlGenerator.generate((Cache) this, pw, false));
  }
This is for debugging cache-open issues such as {@link CacheExistsException}.
geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java