@Override
	public ModuleDefinitionResource toResource(ModuleDefinition entity) {
		return createResourceWithId(entity.getType() + "/" + entity.getName(), entity);
	}
Knows how to build a REST resource out of our domain model {@link ModuleDefinition}.

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