code: protected boolean wasStopIssuedOnJob() {
          StopLock stopLock = getStopLock(); // Store in local variable to facilitate Ctrl+Shift+G search in Eclipse
          synchronized (stopLock) {
              if (runtimeWorkUnitExecution.getBatchStatus().equals(BatchStatus.STOPPING)) {
                  return true;
              } else {
                  return false;
              }
          }
      }
docs: We need this because the stop can come in at the job level, while the step-level constructs
  are still getting set up.
  
  @return true if jobexecution is STOPPING.