String cacheName = event.getCacheName();
EmbeddedCacheManager container = event.getCacheManager();
log.infof("Stopped %s cache from %s container", cacheName, container.getGlobalConfiguration().getCacheManagerName());
XAResourceRecoveryRegistry recoveryRegistry = this.configuration.getXAResourceRecoveryRegistry();
if (recoveryRegistry != null) {
recoveryRegistry.removeXAResourceRecovery(new InfinispanXAResourceRecovery(cacheName, container));
}
/*
// Infinispan does not unregister cache mbean when cache stops (only when cache manager is stopped), so do it now to avoid classloader leaks
MBeanServer server = this.configuration.getMBeanServer();
if (server != null) {