code: private static final boolean isCurrentUOW(Object uow) {
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.entry(TRACE, "isCurrentUOW", uow);
          }
  
          boolean isSameUOW = false;
  
          if (isRunningInWAS()) {
              Object currentUOW = getCurrentUOWCoord();
  
              if (uow == null) {
                  isSameUOW = currentUOW == null;
              } else {
                  isSameUOW = uow.equals(currentUOW);
              }
          }
  
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.exit(TRACE, "isCurrentUOW", Boolean.valueOf(isSameUOW));
          }
          return isSameUOW;
      }
docs: Checks if the UOW (ie transaction) is the UOW currently active on the thread.
  If there is no current UOW and the parameter is null, true is returned. This check
  only works if the WAS TransactionManager is available.
  
  @param ouw the UOW of check
  @return if running in WAS and uow matches the current UOW on the thread, otherwise false.