jobInstance.getJobName(), jobInstance.getId());
List<JobExecutionInfo> jobExecutionInfos = new ArrayList<JobExecutionInfo>();
for (JobExecution jobExecution : jobExecutions) {
jobExecutionInfos.add(new JobExecutionInfo(jobExecution, timeZone));
}
return jobInstanceInfoResourceAssembler.toResource(new JobInstanceInfo(jobInstance, jobExecutionInfos));
}
catch (NoSuchJobException e) {
throw new NoSuchBatchJobException(jobName);
}
}