private void generate(Declarable d, Properties p) throws SAXException {
    if (d == null) {
      return;
    }

    handler.startElement("", CacheXml.INITIALIZER, CacheXml.INITIALIZER, EMPTY);

    String className = d.getClass().getName();
    handler.startElement("", CLASS_NAME, CLASS_NAME, EMPTY);
    handler.characters(className.toCharArray(), 0, className.length());
    handler.endElement("", CLASS_NAME, CLASS_NAME);

    generate(p, null);

    handler.endElement("", CacheXml.INITIALIZER, CacheXml.INITIALIZER);
  }
Generates XML for a <code>CacheCallback</code>
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/CacheXmlGenerator.java