public FormValidation doCheckStashUserPassword(@QueryParameter String value)
        throws IOException, ServletException {

      if (value.trim().equals("")
          && ((stashPassword == null) || stashPassword.getPlainText().trim().equals(""))) {
        return FormValidation.warning(
            "You should use a non-empty password here or in the " + "global configuration!");
      } else {
        return FormValidation.ok();
      }
    }
  @Override
  public void configureClientProxy(
      final HttpClient httpClient,
      final HostConfiguration hostConfiguration,
      final HttpState httpState,
      final ConnectionInstanceData connectionInstanceData) {
    hostConfiguration.setProxyHost(proxyHost);

    if (proxyHost != null) {
      final String proxyUser = proxyHost.getProxyUser();
      final Secret proxySecret = proxyHost.getProxySecret();
      if (proxyUser != null && proxySecret != null) {
        httpState.setProxyCredentials(
            AuthScope.ANY, new UsernamePasswordCredentials(proxyUser, proxySecret.getPlainText()));
      } else {
        httpState.setProxyCredentials(AuthScope.ANY, new DefaultNTCredentials());
      }
    }
  }