INTERNAL:
This method will be used to check for a transaction and throws exception if none exists.
If this methiod returns without exception then a transaction exists.
This method must be called before accessing the localUOW.
INTERNAL:
THis method is used to get the active UnitOfWork. It is special in that it will
return the required RepeatableWriteUnitOfWork required by the EntityManager. Once
RepeatableWrite is merged into existing UnitOfWork this code can go away.
Parameters: transaction -
Mark the current transaction so that the only possible
outcome of the transaction is for the transaction to be
rolled back.
This is an internal method and if the txn is not active will do nothing