Transaction tx = transactionManager.getTransaction();
LocalTransaction localTransaction = tx == null ? null : transactionTable.getLocalTransaction(tx);
// The stored localTransaction could be null, if this is the first call in a transaction. In which case
// we know that there is no transactional state to refer to - i.e., no entries have been looked up as yet.
return localTransaction == null ? null : localTransaction.lookupEntry(deltaMapKey);
} catch (SystemException e) {
return null;
}
}