JobExecution jobExecution = convertJobExecutionType(type.jobExecution);
StepExecution stepExecution = type.id != null ? new StepExecution(type.stepName, jobExecution, type.id)
: new StepExecution(type.stepName, jobExecution);
stepExecution.setVersion(type.version);
stepExecution.setStatus(type.status);
stepExecution.setExitStatus(new ExitStatus(type.exitStatus));
stepExecution.setReadCount(type.readCount);
stepExecution.setWriteCount(type.writeCount);
stepExecution.setCommitCount(type.commitCount);
stepExecution.setRollbackCount(type.rollbackCount);
stepExecution.setReadSkipCount(type.readSkipCount);