docs: static byte[] removeAlpnExtensionsFromServerHello(ByteBuffer source, final AtomicReference<String> selectedAlpnProtocol)
              throws SSLException {
          ByteArrayOutputStream out = new ByteArrayOutputStream();
  
          try {
  
              exploreHandshake(source, source.remaining(), selectedAlpnProtocol, out);
              //we need to adjust the record length;
              int serverHelloLength = out.size() - 4;
              byte[] data = out.toByteArray();
  
              //now we need to adjust the handshake frame length
              data[1] = (byte) ((serverHelloLength >> 16) & 0xFF);
              data[2] = (byte) ((serverHelloLength >> 8) & 0xFF);
              data[3] = (byte) (serverHelloLength & 0xFF);
              return data;
          } catch (AlpnProcessingException e) {
              return null;
          }
      }