code: public static void removeMBeanRegistrationListener(MBeanServerConnection pServer,NotificationListener pListener) {
          try {
              pServer.removeNotificationListener(JmxUtil.getMBeanServerDelegateName(), pListener);
          } catch (ListenerNotFoundException e) {
              // We silently ignore listeners not found, they might have been deregistered previously
          } catch (InstanceNotFoundException e) {
              throw new IllegalStateException("Cannot find " + getMBeanServerDelegateName() + " in server " + pServer,e);
          } catch (IOException e) {
              throw new IllegalStateException("IOException while registering notification listener for " + getMBeanServerDelegateName(),e);
          }
  
      }
docs: Remove a notification listener from the given MBeanServer while listening for MBeanServer registration events
  @param pServer server from where to unregister
  @param pListener listener to unregister