Adds hibernate entity manager logic to the XA transaction.