public static Element getElement(Reader reader) {
        return XML.getDocument(reader).getDocumentElement();
    }
Utility method to get an XML element from a reader.

@param reader the {@link Reader} to get an xml element from
config-application-package/src/main/java/com/yahoo/config/application/Xml.java