@Override
    public void endDocument() throws SAXException {
        try {
            if (validator != null) {
                validator.endDocument();
            }
        } catch (final RuntimeException e) {
            unexpectedError("endDocument()", e);
        } finally {
            super.endDocument();
        }
    }
Fires necessary end document event for the current validator.

@throws SAXException Could be thrown by validator.
@see stroom.pipeline.filter.AbstractXMLFilter#endDocument()
stroom-pipeline/src/main/java/stroom/pipeline/filter/SchemaFilter.java