@Override
    public void finishCacheXml(File root, String name, boolean useSchema, String xmlVersion)
        throws IOException {
      File dir = new File(root, "XML_" + xmlVersion);
      dir.mkdirs();
      File file = new File(dir, name + ".xml");
      PrintWriter printWriter = new PrintWriter(new FileWriter(file), true);
      CacheXmlGenerator.generate(getCache(), printWriter, useSchema, xmlVersion);
      printWriter.close();
      close();
      GemFireCacheImpl.testCacheXml = file;
      try {
        createCache.run();
      } catch (Exception e) {
        throw new RuntimeException(e);
      } finally {
        GemFireCacheImpl.testCacheXml = null;
      }
    }
Finish what {@code beginCacheXml} started. It does this be generating a cache.xml file and
then creating a real cache using that cache.xml.
geode-dunit/src/main/java/org/apache/geode/test/dunit/rules/CacheXmlRule.java