docs: @Override
      public int getLocalId() {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              Tr.entry(tc, "getLocalId");
  
          int localId = 0;
  
          final TransactionImpl tran = ((TranManagerSet) TransactionManagerFactory.getTransactionManager()).getTransactionImpl();
  
          if (tran != null) {
              localId = (int) tran.getLocalTID();
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              Tr.exit(tc, "getLocalId", localId);
          return localId;
      }