code:     public void doConfigSubmit(StaplerRequest req, StaplerResponse rsp) throws ServletException,
              IOException,
              InterruptedException {
          if (logger.isDebugEnabled()) {
              logger.debug("submit {}", req.toString());
          }
          JSONObject form = req.getSubmittedForm();
          PluginConfig pluginConfig = PluginImpl.getPluginConfig_();
          if (pluginConfig != null) {
              pluginConfig.setValues(form);
              PluginImpl.save_();
              GerritSendCommandQueue.configure(pluginConfig);
          }
          //TODO reconfigure the incoming worker threads as well
  
          rsp.sendRedirect(".");
      }
  
  