@Override
	public MetricResource toResource(M entity) {
		return createResourceWithId(entity.getName(), entity);
	}
Base class for a {@link ResourceAssembler} that builds shallow resources for metrics (exposing only their names, and
hence their "self" rel).

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