docs: static <K, V> boolean isRegistered(AbstractJCache<K, V> cache, ObjectNameType objectNameType) {
        Set<ObjectName> registeredObjectNames;
        MBeanServer mBeanServer = cache.getMBeanServer();
  
        if (mBeanServer != null) {
           ObjectName objectName = calculateObjectName(cache, objectNameType);
           registeredObjectNames = SecurityActions.queryNames(objectName, null, mBeanServer);
  
           return !registeredObjectNames.isEmpty();
        } else {
           return false;
        }
     }