@Override
	public JobDefinitionResource createJob(String name, String definition, boolean deploy) {

		MultiValueMap<String, Object> values = new LinkedMultiValueMap<String, Object>();
		values.add("name", name);
		values.add("deploy", String.valueOf(deploy));
		values.add("definition", definition);

		JobDefinitionResource job = restTemplate.postForObject(resources.get("jobs/definitions").expand(), values,
				JobDefinitionResource.class);
		return job;
	}
Implementation of the Job-related part of the API.

@author Glenn Renfro
@author Ilayaperumal Gopinathan
@author Gunnar Hillert
@author Eric Bottard
@author Paul Harris
@author Gary Russell
spring-xd-rest-client/src/main/java/org/springframework/xd/rest/client/impl/JobTemplate.java