public void write(Node node) throws IOException {
        writeNode(node);

        if ( autoFlush ) {
            flush();
        }
    }
Writes the given {@link Node}.

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