private void generate(PartitionResolver rr) throws SAXException {
    if (rr == null) {
      return;
    }

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

    String className = rr.getClass().getName();

    handler.startElement("", CLASS_NAME, CLASS_NAME, EMPTY);
    handler.characters(className.toCharArray(), 0, className.length());
    handler.endElement("", CLASS_NAME, CLASS_NAME);
    Properties props;
    if (rr instanceof Declarable2) {
      props = ((Declarable2) rr).getConfig();
      generate(props, null);
    }
    handler.endElement("", CacheXml.PARTITION_RESOLVER, CacheXml.PARTITION_RESOLVER);
  }
Generate XML for partition-resolver element in PartitionedRegion Attributes
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/CacheXmlGenerator.java