@Override
    public ByteBuffer expandWriteBufferIfNeeded(final int newCapacity) throws IOException {
      return buffer = bufferPool.expandWriteBufferIfNeeded(bufferType, getBuffer(), newCapacity);
    }
The destructor. Called by the resource owner to undo the work of the constructor.
geode-core/src/main/java/org/apache/geode/internal/net/ByteBufferVendor.java