ConfigurationBuilderHolder holder = new ConfigurationBuilderHolder();
// 2. Build global configuration with custom settings
GlobalConfigurationBuilder globalBuilder = holder.getGlobalConfigurationBuilder();
globalBuilder.read(manager.getCacheManagerConfiguration());
globalBuilder.globalJmxStatistics().enabled(Boolean.parseBoolean(globalStats));
// 3. Build default configuration
holder.getDefaultConfigurationBuilder().read(manager.getDefaultCacheConfiguration());
// 4. Build all defined caches