protected void incrementNamedCountingMonitor(String name, ConcurrentMap<String, NamedCountingMonitor> map) {
        NamedCountingMonitor monitor = map.get(name);
        if (monitor == null) {
            monitor = new NamedCountingMonitor(name);
            NamedCountingMonitor conflict = map.putIfAbsent(name, monitor);
            if (conflict != null) monitor = conflict;
            else MonitorRegistry.getInstance().registerObject(monitor);
        }
        monitor.increment();
    }
protected void incrementNamedCountingMonitor ( String name , ConcurrentMap < String , NamedCountingMonitor > map ) { NamedCountingMonitor monitor = map . get ( name ) ; if ( monitor == null ) { monitor = new NamedCountingMonitor ( name ) ; NamedCountingMonitor conflict = map . putIfAbsent ( name , monitor ) ; if ( conflict != null ) monitor = conflict ; else MonitorRegistry . getInstance ( ) . registerObject ( monitor ) ; } monitor . increment ( ) ; }
helper method to create new monitor, place into map, and register wtih Epic, if necessary