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

@author Mark Pollack
spring-xd-analytics/src/main/java/org/springframework/xd/analytics/metrics/memory/InMemoryGaugeRepository.java