class JobExecutionFeService extends CommonFeService {

    public ContentPageModel<List<JobExecutionModel>> getJobExecutionModelPage(final String applicationInstanceId,
                                                                              final String jobName,
                                                                              final Integer startIndex,
                                                                              final Integer pageSize) {
        final LightminClientApplication lightminClientApplication = this.findLightminClientApplicatonById(applicationInstanceId);
        final JobInstancePage jobInstancesPage =
                this.jobServerService.getJobInstances(jobName, startIndex, pageSize, lightminClientApplication);

        final ContentPageModel<List<JobExecutionModel>> page =
                new ContentPageModel<>(startIndex, pageSize, jobInstancesPage.getTotalJobInstanceCount());

        final List<JobExecutionModel> jobExecutionModels = new ArrayList<>();

        for (final JobInstance jobInstance : jobInstancesPage.getJobInstances()) {
            final JobExecutionPage jobExecutionsForInstance =
                    this.jobServerService.getJobExecutionPage(jobInstance.getId(), lightminClientApplication);
            final List<JobExecution> jobExecutions = jobExecutionsForInstance.getJobExecutions();
            for (final JobExecution jobExecution : jobExecutions) {
                final JobExecutionModel jobExecutionModel = new JobExecutionModel();
                this.mapJobExecution(jobExecution, jobExecutionModel);
                jobExecutionModels.add(jobExecutionModel);
            }
        }
        page.setValue(jobExecutionModels);
        return page;
    }

    public  JobExecutionFeService(final RegistrationBean registrationBean, final JobServerService jobServerService);

}