@Override
    public void endProcessing() {
        for (int i = 0; i < filters.length; i++) {
            try {
                final XMLFilter filter = filters[i];
                filter.endProcessing();
            } catch (final RuntimeException e1) {
                LOGGER.trace("Unable to end processing!", e1);

                // Make sure the rest of the filters get the event.
                for (i = i + 1; i < filters.length; i++) {
                    final XMLFilter f = filters[i];
                    try {
                        f.endProcessing();
                    } catch (final RuntimeException e2) {
                        LOGGER.trace("Unable to end processing!", e2);
                    }
                }

                throw ProcessException.wrap(e1);
            }
        }
    }
Called just after a pipeline has finished processing a file.

@throws SAXException Could be thrown by a filter.
@see stroom.pipeline.filter.XMLFilter#endProcessing()
stroom-pipeline/src/main/java/stroom/pipeline/filter/XMLFilterFork.java