docs: public static ObjectName registerMbean(String typeName, Object obj) {
          MBeanServer server = ManagementFactory.getPlatformMBeanServer();
          ObjectName name = JmxUtils.createObjectName(JmxUtils.getPackageName(obj.getClass()),
                                                      typeName);
          registerMbean(server, JmxUtils.createModelMBean(obj), name);
          return name;
      }