docs: @Stop
     public void stop() {
        if (needToUnregister) {
           // Only unregister the non cache MBean so that it can be restarted
           try {
              unregisterMBeans(nonCacheDMBeans);
              needToUnregister = false;
           } catch (Exception e) {
              log.problemsUnregisteringMBeans(e);
           }
        }
  
        // If removing cache, also remove cache MBean
        if (unregisterCacheMBean)
           globalJmxRegistration.unregisterCacheMBean(this.cacheName, this.cacheConfiguration
              .clustering().cacheModeString());
  
        // make sure we don't set cache to null, in case it needs to be restarted via JMX.
     }