protected void writeCDATA(String text) throws IOException {
        writer.write( "<![CDATA[" );
        if (text != null) {
            writer.write( text );
        }
        writer.write( "]]>" );

        lastOutputNodeType = Node.CDATA_SECTION_NODE;
    }
Outputs the content of the given element. If whitespace trimming is
enabled then all adjacent text nodes are appended together before
the whitespace trimming occurs to avoid problems with multiple
text nodes being created due to text content that spans parser buffers
in a SAX parser.
@param element the element to write
@throws IOException if the element could not be written
xmppserver/src/main/java/org/jivesoftware/util/XMLWriter.java