code: public void cleanup() throws InconsistentLocalTranException, IllegalStateException,RolledbackException
      {
          if (tc.isEntryEnabled()) Tr.entry(tc, "cleanup", this);
  
          if (_coord == null)
          {
              final IllegalStateException ise = new IllegalStateException("No LocalTransactionCoordinator to cleanup.");
              FFDCFilter.processException(ise, "com.ibm.tx.ltc.LocalTranCurrentImpl.cleanup", "421", this);
              Tr.error(tc, "ERR_NO_LTC_CLEANUP");
              if (tc.isEntryEnabled()) Tr.exit(tc, "cleanup", ise);
              throw ise;
          }
  
          try
          {
              _coord.cleanup();
          }
          finally
          {
              if (tc.isEntryEnabled()) Tr.exit(tc, "cleanup");
          }
      }
docs: Cleans up all <CODE>OnePhaseXAResource</CODE> objects that have
  been enlisted, via the enlistForCleanup() method, with the
  LocalTransactionCoordinator associated with the current thread.
  The direction in which resources are completed during <code>cleanup</code>
  is determined from the unresolved-action DD.
  
  @exception InconsistentLocalTranException
  Thrown when completion of a resource fails leaving the local
  transaction containment in an inconsistent state.
  @exception RolledbackException
  Thrown if unresolved-action is COMMIT 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.