private String loadXmlDefinition(final String xmlDocument) {
    try {
      InputSource inputSource = new InputSource(new StringReader(xmlDocument));
      return loadXmlDefinition(XmlUtils.getDocumentBuilder().parse(inputSource));
    } catch (IOException | SAXException | ParserConfigurationException | XPathExpressionException
        | TransformerFactoryConfigurationError | TransformerException e) {
      throw new InternalGemFireError("Could not parse XML when creating XMLEntity", e);
    }
  }
Used supplied xmlDocument to extract the XML for the defined XmlEntity.

@param xmlDocument to extract XML from.
@return XML for XmlEntity if found, otherwise {@code null}.
@since GemFire 8.1
geode-core/src/main/java/org/apache/geode/management/internal/configuration/domain/XmlEntity.java