private void generate(Class c, String element) throws SAXException {
    if (c != null) {
      handler.startElement("", element, element, EMPTY);
      String className = c.getName();
      handler.characters(className.toCharArray(), 0, className.length());
      handler.endElement("", element, element);
    }
  }
Generates XML for key constraints

@param element The kind of element to generate (KEY_CONSTRAINT or VALUE_CONSTRAINT).
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/CacheXmlGenerator.java