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

@author Eric Bottard
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/DetailedModuleDefinitionResourceAssembler.java