@Override
	public void delete(M metric) {
		Assert.notNull(metric, "The metric instance must not be null");
		map.remove(metric.getName());
	}
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