@Override
    public void endProcessing() {
        LOGGER.debug("Processed {} XML ref data entries for ref stream {}",
                valueCount,
                refStreamDefinition);

        try {
            refDataLoaderHolder.getRefDataLoader().markPutsComplete();
        } finally {
            // It is critical that this happens else the buffer it uses will not be released back to the pool
            LOGGER.debug("closing stagingValueOutputStream");
            stagingValueOutputStream.close();
            super.endProcessing();
        }
    }
@param ch     An array of characters.
@param start  The starting position in the array.
@param length The number of characters to use from the array.
@throws org.xml.sax.SAXException The client may throw an exception during processing.
@see stroom.pipeline.filter.AbstractXMLFilter#characters(char[],
int, int)
stroom-pipeline/src/main/java/stroom/pipeline/refdata/ReferenceDataFilter.java