docs: public static void registerCacheObject(Object mxbean, String cacheManagerName, String name, boolean stats) {
          synchronized (mBeanServer) {
              //these can change during runtime, so always look it up
              ObjectName registeredObjectName = calculateObjectName(cacheManagerName, name, stats);
              try {
                  if (!isRegistered(cacheManagerName, name, stats)) {
                      mBeanServer.registerMBean(mxbean, registeredObjectName);
                  }
              } catch (Exception e) {
                  throw new CacheException(
                          "Error registering cache MXBeans for CacheManager " + registeredObjectName
                                  + ". Error was " + e.getMessage(), e);
              }
          }
      }