@Override
	protected CounterResource instantiateResource(Counter entity) {
		return new CounterResource(entity.getName(), entity.getValue());
	}
Knows how to assemble {@link CounterResource}s out of {@link Counter}s.

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