docs: @RequirePOST
      public synchronized void doDoCreateItem( StaplerRequest req, StaplerResponse rsp,
                                             @QueryParameter String name,
                                             @QueryParameter String type ) throws IOException, ServletException, FormException {
          final Jenkins app = Jenkins.getInstance();
          app.checkPermission(Computer.CREATE);
          String fixedName = Util.fixEmptyAndTrim(name);
          checkName(fixedName);
  
          JSONObject formData = req.getSubmittedForm();
          formData.put("name", fixedName);
          
          // TODO type is probably NodeDescriptor.id but confirm
          Node result = NodeDescriptor.all().find(type).newInstance(req, formData);
          app.addNode(result);
  
          // take the user back to the agent list top page
          rsp.sendRedirect2(".");
      }