code: public void start() {
          MBeanServer server = getMbeanServer();
          if (server != null) {
              registerMBeanServer(server);
          } else {
              LOG.error("No MBeanServer available so cannot register mbean");
          }
      }
docs: Registers the object with JMX