/** * Obtains the first CompositeMonitor found on the per thread stack that has its name attribute * equal to the supplied name. This method should be used in situations where stateless code is * unable to hold a reference to the CompositeMonitor that was originally created. Supplying the * name value is needed to ensure that instrumentation errors in code called by users of this * method does not interfere with the ability to correctly obtain the original CompositeMonitor. * * @param name the value of name that our Monitor was created with. * @return the first CompositeMonitor with the supplied name, or null if not found * @throws IllegalArgumentException if name is null */ public CompositeMonitor getCompositeMonitorNamed(final String name) throws IllegalArgumentException { return inheritableStrategy.getCompositeMonitorNamed(name); }