docs: @RequirePOST
      @Restricted(NoExternalUse.class)
      public HttpResponse doConfirmRename(@QueryParameter String newName) throws IOException {
          newName = newName == null ? null : newName.trim();
          FormValidation validationError = doCheckNewName(newName);
          if (validationError.kind != FormValidation.Kind.OK) {
              throw new Failure(validationError.getMessage());
          }
  
          renameTo(newName);
          // send to the new job page
          // note we can't use getUrl() because that would pick up old name in the
          // Ancestor.getUrl()
          return HttpResponses.redirectTo("../" + newName);
      }