Class factory = Class.forName(configuration.getCachingBackend().getFactoryClass());
cacheManager = ((CacheManagerFactory)factory.newInstance()).createCacheManager(configuration);
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {
log.warn("cache manager factory {} not found on classpath (error: {}); falling back to Guava in-memory cache backend!", configuration.getCachingBackend(), e.getMessage());
CacheManagerFactory factory = new GuavaCacheManagerFactory();
cacheManager = factory.createCacheManager(configuration);
}
}