public void write(Namespace namespace) throws IOException {
        writeNamespace(namespace);

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

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