}
// all neccessary db operations are executed within a PersistenceBroker transaction:
if (!broker.isInTransaction())
{
log.error("PB associated with current odmg-tx is not in tx");
throw new TransactionAbortedException("Underlying PB is not in tx, was begin call done before commit?");
}
// Committing has to be done in two phases. First implicitly upgrade to lock on all related
// objects of objects in this transaction. Then the list of locked objects has to be
// reordered to solve referential integrity dependencies, then the objects are