@Override
	protected JobDefinitionResource instantiateResource(JobDefinition entity) {
		return new JobDefinitionResource(entity.getName(), entity.getDefinition());
	}
Knows how to build a REST resource out of our domain model {@link JobDefinition}.

@author Glenn Renfro
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/JobDefinitionResourceAssembler.java