code: public UOWCoordinator getUOWCoord()
      {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "getUOWCoord", this);
  
          UOWCoordinator uow = tx;
          if (uow == null)
          {
              // can optimise this by caching the threadlocal 'LocalTranCurrentSet.instance().self'
              uow = (UOWCoordinator) LocalTranCurrentSet.instance().getLocalTranCoord();
          }
  
          if (tc.isEntryEnabled())
              Tr.exit(tc, "getUOWCoord", uow);
          return uow;
      }
docs: Return the current UOW coordinator (either local or global)