class JobFeService extends CommonFeService {

    public List<BatchJobInfoModel> findById(final String applicationId) {
        final LightminClientApplication lightminClientApplication = this.registrationBean.findById(applicationId);
        final List<String> registeredJobs = lightminClientApplication.getLightminClientInformation().getRegisteredJobs();

        final List<BatchJobInfoModel> batchJobInfoModels = new ArrayList<>();

        registeredJobs
                .forEach(
                        jobName -> {
                            final JobInfo jobInfo = this.jobServerService.getJobInfo(jobName, lightminClientApplication);
                            final BatchJobInfoModel batchJobInfoModel = new BatchJobInfoModel();
                            batchJobInfoModel.setInstanceCount(jobInfo.getJobInstanceCount());
                            batchJobInfoModel.setJobName(jobInfo.getJobName());
                            batchJobInfoModels.add(batchJobInfoModel);
                        }
                );

        return batchJobInfoModels;
    }

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

}