@Override
	public JobExecution getLastJobExecution(String jobName, JobParameters jobParameters) {
		JobInstance jobInstance = jobInstanceDao.getJobInstance(jobName, jobParameters);

		if (jobInstance == null) {
			return null;
		}

		JobExecution jobExecution = jobExecutionDao.getLastJobExecution(jobInstance);

		if (jobExecution != null) {
			stepExecutionDao.addStepExecutions(jobExecution);
		}

		return jobExecution;

	}
Returns the last {@link JobExecution} for the requested job <em>without</em>
rehydrating the related {@link org.springframework.batch.item.ExecutionContext}.

@param jobName The name of the job
@param jobParameters The parameters of the job
@return The related JobExecution
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/job/support/JobLaunchingJobRepository.java