ArrayList prefixes )
Set namespaces)
    public void toSAX( ContentHandler contentHandler,                       LexicalHandler lexicalHandler, boolean first,                       ArrayList prefixes )         throws SAXException {        if ( first ) {            AttributesImpl attribs = new AttributesImpl();            attribs.addAttribute( "http://exist.sourceforge.net/NS/exist", "id",                "exist:id", "CDATA", Long.toString( gid ) );            attribs.addAttribute( "http://exist.sourceforge.net/NS/exist", "source",                "exist:source", "CDATA", ownerDocument.getFileName() );            contentHandler.startElement( "http://exist.sourceforge.net/NS/exist", "text",                "exist:text", attribs );        }        char ch[] = new char[cdata.length()];        cdata.toString().getChars( 0, ch.length, ch, 0 );        contentHandler.characters( ch, 0, ch.length );        if ( first )            contentHandler.endElement( "http://exist.sourceforge.net/NS/exist", "text",                "exist:text" );    }