private synchronized Counter getOrCreate(String name) {
		Counter result = findOne(name);
		if (result == null) {
			result = new Counter(name);
			result = save(result);
		}
		return result;
	}
Memory backed implementation of Counter repository that uses a ConcurrentMap.

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