code: @Deprecated
      public ContainerTx getCurrentTx(boolean checkMarkedRollback) throws CSITransactionRolledbackException {
          ContainerTx result = null;
          SynchronizationRegistryUOWScope currTxKey = uowCtrl.getCurrentTransactionalUOW(checkMarkedRollback);
  
          //---------------------------------------------------------
          // No transaction available in after_completion callbacks.
          // Okay to return null in this case.
          //---------------------------------------------------------
  
          if (currTxKey != null) {
              result = (ContainerTx) currTxKey.getResource(containerTxResourceKey);
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, "getCurrentTx() : " + result);
  
          return result;
      }
docs: Returns container transaction associated with the current thread. <p>
  
  Will return null if a container transaction is not associated with
  the current thread. For example, during after_completion callbacks. <p>
  
  @param checkMarkedRollback set to true if an exception should be thrown
  if the transaction has been marked for
  rollback only.
  
  @return container transaction associated with the current thread.
  
  @exception CSITransactionRolledbackException if the current transaction
  has been marked for rolled back only, is rolling back, or
  has rolled back.
  @deprecated use {@link #getCurrentContainerTx()} instead.