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

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