private ObjectName createMetrics3Name ( String domain , String name ) throws MalformedObjectNameException { try { return new ObjectName ( domain , "name" , name ) ; } catch ( MalformedObjectNameException e ) { return new ObjectName ( domain , "name" , ObjectName . quote ( name ) ) ; } }
Default behavior of Metrics 3 library for fallback