throw new XAException(msg);
}
try {
tm.getTransaction().registerSynchronization(xac.pm);
if (!tx.isActive()) {
tx.begin();
}
xac.synchroRegistred = true;
} catch (RollbackException e) {
//The JDO container cannot be registered then the transaction
// must be rolledback