code: private void handleSslData(NextFilter nextFilter, SslHandler handler)
              throws SSLException {
          // Flush any buffered write requests occurred before handshaking.
          if (handler.isHandshakeComplete()) {
              handler.flushPreHandshakeEvents();
          }
  
          // Write encrypted data to be written (if any)
          handler.writeNetBuffer(nextFilter);
  
          // handle app. data read (if any)
          handleAppDataRead(nextFilter, handler);
      }
docs: Utiliities