@Override
  public boolean release() {
    if (bufferToSend != null) {
      ReferenceCountUtil.safeRelease(bufferToSend);
      bufferToSend = null;
    }
    // If the DataInputStream is NettyByteBufDataInputStream based, it's time to release its buffer.
    if (stream != null && stream instanceof NettyByteBufDataInputStream) {
      ReferenceCountUtil.safeRelease(((NettyByteBufDataInputStream) stream).getBuffer());
    }
    return false;
  }
Override the release method from {@link RequestOrResponse}.
ambry-protocol/src/main/java/com/github/ambry/protocol/FileCopyGetMetaDataResponse.java