@Override
	public JobInfoResource toResource(JobInfo entity) {
		return createResourceWithId(entity.getName(), entity);
	}
Knows how to build a REST resource out of our domain model {@link JobInfo}.

@author Ilayaperumal Gopinathan
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/JobInfoResourceAssembler.java