private Collection<String> getJobDefinitionNames() {
		Collection<String> jobDefinitionNames = new ArrayList<String>();
		Iterable<JobDefinition> jobDefinitions = xdJobDefinitionRepository.findAll();
		for (JobDefinition definition : jobDefinitions) {
			jobDefinitionNames.add(definition.getName());
		}
		return jobDefinitionNames;
	}
Get all existing job definition names.

@return the collection of job definition names
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/BatchJobExecutionsController.java