private DetailedJobInfo getJobInfo(String jobName, boolean deployed) {
		boolean launchable = jobService.isLaunchable(jobName);
		try {
			int count = jobService.countJobExecutionsForJob(jobName);
			return new DetailedJobInfo(jobName, count, launchable,
					jobService.isIncrementable(jobName),
					getLastExecution(jobName), deployed);
		}
		catch (NoSuchJobException e) {
			return null;
		}
	}
Get detailed job info

@param jobName name of the job
@param deployed the deployment status of the job
@return a job info for this job or null if job doesn't exist
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/BatchJobsController.java