subJobStep
.setMainJobExecutionStatusHolder(mainJobExecutionStatusHolder);
subJobStep.setJobLauncher(jobLauncher);
subJobStep.setJobRepository(jobRepository);
subJobStep.setStepExecutionListeners(jobStepListeners);
subJobStep.afterPropertiesSet();
mainJob.addStep(subJobStep);
logger.debug("added sub job step: " + subJobStep.getName());
int subJobParametersNumber =
subJobParameters.get(stepNumber).getParameters().keySet().size();
mainJobParams.put(JobConstants.SUB_JOB_PARAMETERS_NUMBER + stepNumber,