return currentValue == null ? valueBeforeTxn : checkIfRemoved(currentValue);
}
public Object put(Object key, Object value, long ttl, TimeUnit timeUnit) {
checkTransactionState();
MapService service = getService();
final Object valueBeforeTxn = service.toObject(putInternal(service.toData(key, partitionStrategy),
service.toData(value), ttl, timeUnit));
TxnValueWrapper currentValue = txMap.get(key);
if (value != null) {
TxnValueWrapper wrapper = valueBeforeTxn == null ?
new TxnValueWrapper(value, TxnValueWrapper.Type.NEW) :