code: @Override
      public ExitStatus afterStep(StepExecution stepExecution) {
          ExitStatus status = stepExecution.getExitStatus();
          List<String> errors = getErrors();
          if (errors.size() > 0) {
              status = status.and(ExitStatus.FAILED);
  
              for (String error : errors) {
                  status = status.addExitDescription(error);
              }
  
              failExecution();
              resetContextState();
  
              log.error("content properties step finished with errors: step_execution_id={} "
                        + "job_execution_id={} store_id={} status=\"{}\"",
                        stepExecution.getId(),
                        stepExecution.getJobExecutionId(),
                        contentStore.getStoreId(),
                        status);
          } else {
  
              status = status.and(ExitStatus.COMPLETED);
              log.info("content properties step finished: step_execution_id={} "
                       + "job_execution_id={} store_id={}  exit_status={} ",
                       stepExecution.getId(),
                       stepExecution.getJobExecutionId(),
                       contentStore.getStoreId(),
                       status);
          }
  
          return status;
      }
docs: /*
  (non-Javadoc)
  
  @see org.springframework.batch.core.StepExecutionListener#afterStep(org.
  springframework.batch.core.StepExecution)