public static synchronized MetricsContext getNullContext ( String contextName ) { MetricsContext nullContext = nullContextMap . get ( contextName ) ; if ( nullContext == null ) { nullContext = new NullContext ( ) ; nullContextMap . put ( contextName , nullContext ) ; } return nullContext ; }
Returns a null context - one which does nothing .