docs: public JobExecution completeNewJob(String jobXMLName, Properties jobParameters) throws IllegalStateException {
          long executionId = jobOp.start(jobXMLName, jobParameters);
          JobExecution jobExec = waitForFinish(executionId);
          if (jobExec.getBatchStatus().equals(BatchStatus.COMPLETED)) {
              logger.finer("Job " + executionId + " successfully completed.");
              return jobExec;
          } else {
              throw new IllegalStateException("Job " + executionId + " finished with non-completed state: " + jobExec.getBatchStatus());
          }
      }