docs: public void recordTermination() {
          StaplerRequest request = Stapler.getCurrentRequest();
          if (request != null) {
              terminatedBy.add(new TerminationRequest(
                      String.format("Termination requested at %s by %s [id=%d] from HTTP request for %s",
                              new Date(),
                              Thread.currentThread(),
                              Thread.currentThread().getId(),
                              request.getRequestURL()
                      )
              ));
          } else {
              terminatedBy.add(new TerminationRequest(
                      String.format("Termination requested at %s by %s [id=%d]",
                              new Date(),
                              Thread.currentThread(),
                              Thread.currentThread().getId()
                      )
              ));
          }
      }