@Override
	public <S extends M> S save(S metric) {
		map.put(metric.getName(), metric);
		return metric;
	}
Memory backed implementation of MetricRepository that uses a ConcurrentMap

@author Luke Taylor
spring-xd-analytics/src/main/java/org/springframework/xd/analytics/metrics/memory/InMemoryMetricRepository.java