logger.info("Flushing {}", cacheName);
CacheManager ehcacheManager = getEhcacheManager();
Cache cache = ehcacheManager.getCache(cacheName);
if (cache != null) {
// flush
cache.removeAll(!propagateInCluster);
// reset statistics
cache.clearStatistics();
logger.info("...done flushing {}", cacheName);
} else {
logger.warn("Cache with the name {} not found. Skip flushing.", cacheName);