*/
public LocalTransaction getOrCreateLocalTransaction(Transaction transaction, InvocationContext ctx) {
LocalTransaction current = localTransactions.get(transaction);
if (current == null) {
Address localAddress = rpcManager != null ? rpcManager.getTransport().getAddress() : null;
GlobalTransaction tx = txFactory.newGlobalTransaction(localAddress, false);
if (trace) log.tracef("Created a new GlobalTransaction %s", tx);
current = txFactory.newLocalTransaction(transaction, tx);
localTransactions.put(transaction, current);
notifier.notifyTransactionRegistered(tx, ctx);
}