@Override
	protected ModuleDefinitionResource instantiateResource(ModuleDefinition entity) {
		return new ModuleDefinitionResource(entity.getName(), entity.getType().name(), entity.isComposed());
	}
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