docs: public synchronized void upload(StaplerRequest req, StaplerResponse rsp) throws InterruptedException, IOException {
          rsp.setStatus(HttpServletResponse.SC_OK);
          InputStream in = req.getInputStream();
          if (DIY_CHUNKING) {
              in = new ChunkedInputStream(in);
          }
  
          // publish the upload channel
          upload = in;
          LOGGER.log(Level.FINE, "Recording upload stream {0} for {1}: {2}", new Object[] {upload, uuid, this});
          notify();
  
          // wait until we are done
          while (!completed) {
              wait();
          }
      }