@Override
	public AggregateCountsResource toResource(AggregateCount entity) {
		return createResourceWithId(entity.getName(), entity);
	}
Knows how to construct {@link AggregateCountsResource} out of {@link AggregateCount}.

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