putInternal(mapServiceContext.toData(key, partitionStrategy), mapServiceContext.toData(value));
txMap.put(key, new TxnValueWrapper(value, TxnValueWrapper.Type.NEW));
return null;
} else {
Data oldValue
= putIfAbsentInternal(mapServiceContext.toData(key, partitionStrategy),
mapServiceContext.toData(value));
if (oldValue == null) {
txMap.put(key, new TxnValueWrapper(value, TxnValueWrapper.Type.NEW));
}
return mapServiceContext.toObject(oldValue);