@Override
  public void reLoadClusterConfiguration() throws IOException, ClassNotFoundException {
    configurationResponse = requestSharedConfiguration();
    if (configurationResponse != null) {
      clusterConfigurationLoader.deployJarsReceivedFromClusterConfiguration(configurationResponse);
      clusterConfigurationLoader.applyClusterPropertiesConfiguration(configurationResponse,
          system.getConfig());
      clusterConfigurationLoader.applyClusterXmlConfiguration(this, configurationResponse,
          system.getConfig().getGroups());
      initializeDeclarativeCache();
    }
  }
Testable version of saveCacheXmlForReconnect() that allows us to inject an XML generator

@param xmlGenerator a consumer of a PrintWriter that generates a description of the Cache
geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java