class JobExecutionFeService extends CommonFeService {

    public JobExecutionDetailsModel getJobExecutionDetailsModel(final Long jobExecutionId,
                                                                final String applicationInstanceId) {
        final LightminClientApplication lightminClientApplication =
                this.findLightminClientApplicatonById(applicationInstanceId);

        final JobExecution jobExecution = this.jobServerService.getJobExecution(jobExecutionId, lightminClientApplication);
        final List<StepExecutionModel> stepExecutionModels = this.mapStepExecutions(jobExecution.getStepExecutions());
        final List<JobParameterModel> jobParameterModels = this.mapJobParameters(jobExecution.getJobParameters());
        final JobExecutionDetailsModel jobExecutionDetailsModel = new JobExecutionDetailsModel();
        this.mapJobExecution(jobExecution, jobExecutionDetailsModel);
        jobExecutionDetailsModel.setExitMessage(jobExecution.getExitStatus().getExitDescription());
        jobExecutionDetailsModel.setStepExecutions(stepExecutionModels);
        jobExecutionDetailsModel.setJobParameters(jobParameterModels);
        return jobExecutionDetailsModel;
    }

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

}