Do we really need a special case here?

BTW, localTx will be null here if tx is not a LocalTransaction, so the check above doesn't really add any safety.