} else {
throw new IllegalStateException("Cache entry stored in context should be a RepeatableReadEntry instance " +
"but it is " + cacheEntry.getClass().getCanonicalName());
}
//if the icEntry is not null, then this is a remote get. We need to update the value and the metadata.
if (!mvccEntry.isRemoved() && !mvccEntry.skipLookup() && icEntry != null) {
mvccEntry.setValue(icEntry.getValue());
updateVersion(mvccEntry, icEntry.getMetadata());
}
if (!mvccEntry.isRemoved() && mvccEntry.isNull()) {
//new entry