@Override
    public void close() {
        pooledByteBufferOutputStream.close();
    }
Only call this after you have finished writing to the output stream.
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/StagingValueOutputStream.java