/**
   * @param configuration
   * @param useNIO
   * @param httpSecurePort
   * @param secureConnector
   */
  private void configureSSLConnector(
      Configuration configuration,
      Boolean useNIO,
      Integer httpSecurePort,
      Connector secureConnector) {
    secureConnector.setPort(httpSecurePort);
    secureConnector.setSecure(true);
    secureConnector.setScheme("https");
    secureConnector.setProperty("SSLEnabled", "true");

    secureConnector.setProperty("keystoreFile", configuration.getSslKeystore());
    secureConnector.setProperty("keystorePass", configuration.getSslKeyPassword());
    secureConnector.setProperty("clientAuth", "false");
    secureConnector.setProperty("sslProtocol", "TLS");

    // configuration.getSslKeystoreType();
    // configuration.getSslPassword();

    // keystoreFile="${user.home}/.keystore" keystorePass="******"
    // clientAuth="false" sslProtocol="TLS"

    if (useNIO) {
      secureConnector.setProtocolHandlerClassName(Http11NioProtocol.class.getName());
    } else {
      secureConnector.setProtocolHandlerClassName(Http11Protocol.class.getName());
    }
  }
 /**
  * @param configuration
  * @param httpPort
  * @param useNIO
  * @param connector
  */
 private void configureConnector(
     Configuration configuration, Integer httpPort, Boolean useNIO, Connector connector) {
   LOG.debug("Configuring connector {}", connector);
   connector.setScheme("http");
   connector.setPort(httpPort);
   if (configuration.isHttpSecureEnabled()) {
     connector.setRedirectPort(configuration.getHttpSecurePort());
   }
   if (useNIO) {
     connector.setProtocolHandlerClassName(Http11NioProtocol.class.getName());
   } else {
     connector.setProtocolHandlerClassName(Http11Protocol.class.getName());
   }
   // connector
   LOG.debug("configuration done: {}", connector);
 }