code: public SSLEngine addCommonConfigs(SSLEngine engine) {
          if (sslConfig.getCipherSuites() != null && sslConfig.getCipherSuites().length > 0) {
              engine.setEnabledCipherSuites(sslConfig.getCipherSuites());
          }
          if (sslConfig.getEnableProtocols() != null && sslConfig.getEnableProtocols().length > 0) {
              engine.setEnabledProtocols(sslConfig.getEnableProtocols());
          }
          engine.setEnableSessionCreation(sslConfig.isEnableSessionCreation());
          return engine;
      }
docs: Add common configs for both client and server ssl engines.
  
  @param engine client/server ssl engine.
  @return sslEngine