@Override
    public Integer getCapacity() {
        Objects.requireNonNull(byteBuffer, "Already released");
        return byteBuffer.capacity();
    }
Clears the underlying buffer if there is one.
stroom-bytebuffer/src/main/java/stroom/bytebuffer/PooledByteBufferImpl.java