public static Element readRootElement(@Nonnull final Reader reader) throws ExecutionException, InterruptedException {
        return readDocument(reader).getRootElement();
    }
Parses an XML Document from the content provided by a reader and returns the root element of the document.

Equivalent to calling <tt>readDocument(input).getRootElement()</tt>

@param reader The data to be parsed as an XML Document.
@return an XML Document root element.
@throws ExecutionException on any error that occurs during parsing (this typically has a {@link org.dom4j.DocumentException} as its cause).
@throws InterruptedException when the task that is scheduled to perform the parsing gets interrupted during the execution of the task.
xmppserver/src/main/java/org/jivesoftware/util/SAXReaderUtil.java