if (status == CLOSE) return;
oldKernelContext.setOnlyMemory(true);
switch (mode) {
case STORE_REPLACE:
if (storage instanceof BTree) {
BTree btree = (BTree) storage;
if (btree.isReady()) {
//Lookup from BTree to get original object and store.
store(key, storage.lookup(key, oldKernelContext), STORE_REPLACE, oldKernelContext);
}
}
return;