public void write(Element element) throws IOException {
        writeElement(element);

        if ( autoFlush ) {
            flush();
        }
    }
<p>Writes the <code>{@link org.dom4j.Element}</code>, including
its <code>{@link Attribute}</code>s, and its value, and all
its content (child nodes) to the current Writer.</p>

@param element <code>Element</code> to output.
@throws IOException if the element could not be written
xmppserver/src/main/java/org/jivesoftware/util/XMLWriter.java