GlobalJmxStatisticsConfigurationBuilder jmxBuilder = builder.globalJmxStatistics().cacheManagerName(this.name);
MBeanServer server = this.dependencies.getMBeanServer();
if (server != null) {
jmxBuilder.enabled(this.statistics)
.mBeanServerLookup(new MBeanServerProvider(server))
.jmxDomain(EmbeddedCacheManagerService.BASE_SERVICE_NAME.getCanonicalName())
.allowDuplicateDomains(true)
;
} else {