protected EmbeddedCacheManager createCacheManager(Properties properties) throws CacheException {
   try {
     String configLoc =
         ConfigurationHelper.getString(
             INFINISPAN_CONFIG_RESOURCE_PROP, properties, DEF_INFINISPAN_CONFIG_RESOURCE);
     EmbeddedCacheManager manager = new DefaultCacheManager(configLoc, false);
     String globalStats =
         ConfigurationHelper.extractPropertyValue(INFINISPAN_GLOBAL_STATISTICS_PROP, properties);
     if (globalStats != null) {
       manager
           .getGlobalConfiguration()
           .setExposeGlobalJmxStatistics(Boolean.parseBoolean(globalStats));
     }
     manager.start();
     return manager;
   } catch (IOException e) {
     throw new CacheException("Unable to create default cache manager", e);
   }
 }