docs: public static void registerMBean(Object mbean, ObjectName objectName, MBeanServer mBeanServer) throws Exception {
        if (!mBeanServer.isRegistered(objectName)) {
           try {
              SecurityActions.registerMBean(mbean, objectName, mBeanServer);
              log.tracef("Registered %s under %s", mbean, objectName);
           } catch (InstanceAlreadyExistsException e) {
              //this might happen if multiple instances are trying to concurrently register same objectName
              log.couldNotRegisterObjectName(objectName, e);
           }
        } else {
           log.debugf("Object name %s already registered", objectName);
        }
     }