@Override
    public void endDocument() throws SAXException {
        if (ch != null) {
            ch.endDocument();
        }
    }
@see org.xml.sax.ContentHandler#endDocument()
src/nu/validator/servlet/BufferingRootNamespaceSniffer.java