public static Document createDocumentFromReader(final Reader reader)
      throws SAXException, ParserConfigurationException, IOException {
    Document doc;
    InputSource inputSource = new InputSource(reader);

    doc = getDocumentBuilder().parse(inputSource);

    return doc;
  }
Create an XML {@link Document} from the given {@link Reader}.

@param reader to create document from.
@return {@link Document} if successful, otherwise false.
@since GemFire 8.1
geode-core/src/main/java/org/apache/geode/management/internal/configuration/utils/XmlUtils.java