@Override
	public ModuleMetadataResource toResource(ModuleMetadata entity) {
		return createResourceWithId(entity.getQualifiedId(), entity);
	}
Knows how to assemble {@link ModuleMetadataResource}s out of {@link ModuleMetadata}s.

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