that's a valid concern.
I recomment you take a look at
ITrxManager and the code using it.
Note that when writing business logic, e.g. if you subclass JavaProcess or write a model interceptor,
most of the time you don't need to worry yourself with trx-management..it's done by the code invoking your BL.