@Override
    public void endDocument() throws SAXException {
        if (contentHandler == null) {
            return;
        }
        if (currentOutlinee != null) {
            if (isHeadingOutline) {
                request.setAttribute(
                        "http://validator.nu/properties/document-outline",
                        currentOutlinee.outline);
            }
            setOutline(currentOutlinee.outline);
        }
        contentHandler.endDocument();
    }
@throws SAXException
@see org.xml.sax.ContentHandler#endDocument()
src/nu/validator/servlet/OutlineBuildingXMLReaderWrapper.java