.mBeanServerLookup(new MBeanServerProvider(server))
.jmxDomain(SERVICE_NAME.getCanonicalName())
.allowDuplicateDomains(true)
;
} else {
jmxBuilder.disable();
}
// create the cache manager
this.container = new DefaultEmbeddedCacheManager(globalBuilder.build(), this.defaultCache);
this.container.addListener(this);