code: private void configureProxyServer(ChannelPipeline clientPipeline) {
          if (proxyServerConfiguration != null && sslConfig != null) {
              if (proxyServerConfiguration.getProxyUsername() != null
                      && proxyServerConfiguration.getProxyPassword() != null) {
                  clientPipeline.addLast(Constants.PROXY_HANDLER,
                          new HttpProxyHandler(proxyServerConfiguration.getInetSocketAddress(),
                                  proxyServerConfiguration.getProxyUsername(),
                                  proxyServerConfiguration.getProxyPassword()));
              } else {
                  clientPipeline.addLast(Constants.PROXY_HANDLER,
                          new HttpProxyHandler(proxyServerConfiguration.getInetSocketAddress()));
              }
          }
      }
docs: Use netty proxy handler only if scheme is https