code: public void complete(int endMode) throws InconsistentLocalTranException, RolledbackException, IllegalStateException
      {
          if (tc.isEntryEnabled()) Tr.entry(tc, "complete", new Object[]{endMode, this});
  
          if (_coord == null)
          {
              final IllegalStateException ise = new IllegalStateException("No LocalTransactionCoordinator to complete.");
              FFDCFilter.processException(ise, "com.ibm.tx.ltc.LocalTranCurrentImpl.complete", "382", this);
              Tr.error(tc, "ERR_NO_LTC_COMPLETE");
              if (tc.isEntryEnabled()) Tr.exit(tc, "complete", ise);
              throw ise;
          }
          try
          {
              _coord.complete(endMode);
          }
          finally
          {
              if (tc.isEntryEnabled()) Tr.exit(tc, "complete");
          }
      }
docs: Completes all <CODE>OnePhaseXAResource</CODE> objects that have
  been enlisted, via the enlist() method, with the LocalTransactionCoordinator
  associated with the current thread.
  Ends the association of the LTC scope with the thread.
  
  @param endMode The action to be taken when completing the OnePhaseXAResources enlisted
  with the coordinator. Possible values are:
  
  <UL>
  <LI>EndModeCommit</LI>
  <LI>EndModeRollBack</LI>
  </UL>
  @exception InconsistentLocalTranException
  Thrown when completion of a resource fails leaving the local
  transaction containment in an inconsistent state.
  @exception RolledbackException
  Thrown if EndModeCommit is specified but the LTC has been marked
  RollbackOnly. Any enlisted resources are rolled back.
  @exception IllegalStateException
  Thrown if the LocalTransactionCoordinator is not in a
  valid state to execute the operation, for example if
  the LocalTransactionCoordinator has already completed
  or if there is no LocalTransactionCoordinator associated
  with the current thread.