@Override
	protected RichGauge getOrCreate(String name) {
		Assert.notNull(name, "Gauge name can not be null");
		RichGauge gauge = findOne(name);
		if (gauge == null) {
			gauge = new RichGauge(name);
			save(gauge);
		}
		return gauge;
	}
Memory backed implementation of GaugeRepository that uses a ConcurrentMap

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