else
msg.append(" null. Make sure you pass a non-null OTMConnection to this method. An OTMConnection can be acquired by calling acquireConnection (PBKey pbKey)");
throw new TransactionFactoryException(msg.toString());
}
Transaction tx = (Transaction) _transactionMap.get(connection);
if (tx == null)
{
tx = new Transaction();
_transactionMap.put(connection, tx);
}
// ensure that this connection is registered into this transaction
tx.registerConnection(connection);
return tx;
}