public DefaultCacheManager(InputStream configurationStream, boolean start) throws IOException {
try {
InfinispanConfiguration configuration = InfinispanConfiguration.newInfinispanConfiguration(
configurationStream, InfinispanConfiguration.findSchemaInputStream(),
new ConfigurationValidatingVisitor());
globalConfiguration = configuration.parseGlobalConfiguration();
defaultConfiguration = configuration.parseDefaultConfiguration();
for (Map.Entry<String, Configuration> entry : configuration.parseNamedConfigurations().entrySet()) {
Configuration c = defaultConfiguration.clone();
c.applyOverrides(entry.getValue());
configurationOverrides.put(entry.getKey(), c);