private NotificationListener unwrap(ClassLoaderLeakPreventor preventor, Class<?> listenerWrapperClass, NotificationListener listener) {
    if(listenerWrapperClass != null && listenerWrapperClass.isInstance(listener)) {
      return preventor.getFieldValue(listener, "listener"); // Unwrap
    }
    else 
      return listener;
  }
private NotificationListener unwrap ( ClassLoaderLeakPreventor preventor , Class < ? > listenerWrapperClass , NotificationListener listener ) { if ( listenerWrapperClass != null && listenerWrapperClass . isInstance ( listener ) ) { return preventor . getFieldValue ( listener , "listener" ) ; } else return listener ; }
Unwrap {@link NotificationListener} wrapped by {@link com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.ListenerWrapper}