code: public static void endToProcess(ProgressReporter progressReporter, boolean processSuccess, ProgressStatus progressStatus, Object reportObject) {
          progressStatus.getProgressInfo().setIsSuccess(processSuccess);
          progressReporter.reportEnd(progressStatus, reportObject);
      }
docs: A wrapper function of reporting the result of the processing.
  @param progressReporter the {@link ProgressReporter} to report the end of process.
  @param processSuccess the result of process.
  @param progressStatus the current progress status {@link ProgressStatus}.
  @param reportObject the object to send, usually the object returned by {@link ProgressReporter#reportStart(ProgressStatus)}.