code: private void registerJMXStuff() {
      LOG.info("registering InApplicationMonitorDynamicMBean on JMX server");
  
      try {
        jmxBeanRegistrationHelper.registerMBeanOnJMX(this, "InApplicationMonitor", null);
      } catch (Exception e) {
        LOG.error("could not register MBean server : ", e);
      }
    }
docs: registers the InApplicationMonitor as JMX MBean on the running JMX
  server - if no JMX server is running, one is started automagically.