public InputStream generate(CacheCreation creation) {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();

    final String version = getGemFireVersion();

    PrintWriter pw = new PrintWriter(new OutputStreamWriter(baos), true);
    CacheXmlGenerator.generate(creation, pw, getUseSchema(), version);
    pw.close();

    byte[] bytes = baos.toByteArray();
    return new ByteArrayInputStream(bytes);
  }
Generates XML from the given {@code CacheCreation} and returns an {@code InputStream} for
reading that XML.
geode-core/src/distributedTest/java/org/apache/geode/cache30/CacheXml66DUnitTest.java