+ cacheKey);
}
// look up cache
Object prop = cfgCtx.getPropertyNonReplicable(CachingConstants.CACHE_MANAGER);
CacheManager cacheManager;
if (prop != null && prop instanceof CacheManager) {
cacheManager = (CacheManager) prop;
} else {
synchronized (cfgCtx) {
// check again after taking the lock to make sure no one else did it before us
prop = cfgCtx.getPropertyNonReplicable(CachingConstants.CACHE_MANAGER);
if (prop != null && prop instanceof CacheManager) {
cacheManager = (CacheManager) prop;
} else {
synLog.traceOrDebug("Creating/recreating the cache object");
cacheManager = new CacheManager();
cfgCtx.setProperty(CachingConstants.CACHE_MANAGER, cacheManager);
}
}
}