LOG.debug("Found an existing cache: {}", cacheName);
if (LOG.isTraceEnabled()) {
LOG.trace("Cache {} currently contains {} elements", cacheName, cacheManager.getCache(cacheName).getSize());
}
Ehcache cache = cacheManager.getCache(cacheName);
if (!cache.isKeyInCache(key)) {
LOG.debug("No Key with name: {} presently exists in the cache. It is also possible that the key may have expired in the cache."
+ " Replacement will not be performed until an appropriate key/value pair is added to (or) found in the cache.", key);
return false;
}