code: private static Credentials newNTCredentials(HttpClientSettings settings) {
          return new NTCredentials(settings.getProxyUsername(),
                  settings.getProxyPassword(),
                  settings.getProxyWorkstation(),
                  settings.getProxyDomain());
      }
docs: Returns a new instance of NTCredentials used for proxy authentication.