public void stopBuffer(final XMLFilter filter) throws SAXException {
        if (handler != null) {
            handler.getEventList().fire(filter);
            handler = null;
        }
    }
Stops buffering SAX events and fires all buffered events at the specified
content handler.

@param filter The filter to fire buffered SAX events at.
@throws SAXException Not thrown.
stroom-pipeline/src/main/java/stroom/pipeline/filter/BufferFilter.java