public void write(Comment comment) throws IOException {
        writeComment( comment.getText() );

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

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