private void handleUnwrapOverflow() {
    int currentAppReadBufferSize = appReadBufferSize();
    appReadBuffer = Utils.ensureCapacity(appReadBuffer, currentAppReadBufferSize);
    if (appReadBuffer.position() > currentAppReadBufferSize) {
      throw new IllegalStateException(
          "Buffer overflow when available data size (" + appReadBuffer.position() + ") > application buffer size ("
              + currentAppReadBufferSize + ")");
    }
  }
Increase the size of {@link #appReadBuffer}. To be called when an unwrap call returns
{@link Status#BUFFER_OVERFLOW}.
ambry-network/src/main/java/com/github/ambry/network/SSLTransmission.java