final boolean primaryOwner = clusteringDependentLogic.localNodeIsPrimaryOwner(key);
try {
if (newEntry) {
//the entry does not exists in data container. We need to remove from private and shared stores.
//if we are the primary owner
AccessMode mode = primaryOwner ? BOTH : PRIVATE;
if (persistenceManager.deleteFromAllStores(key, mode) && statisticsEnabled) {
activations.incrementAndGet();
}
} else {
//the entry already exists in data container. It may be put during the load by the CacheLoaderInterceptor