code: public void commitTransaction ()
      {
          if (_tevent == null) {
              String errmsg = "Cannot commit: not involved in a transaction [dobj=" + this + "]";
              throw new IllegalStateException(errmsg);
          }
  
          // if we are nested, we decrement our nesting count rather than committing the transaction
          if (_tcount > 0) {
              _tcount--;
  
          } else {
              // we may actually be doing our final commit after someone already cancelled this
              // transaction, so we need to perform the appropriate action at this point
              if (_tcancelled) {
                  _tevent.cancel();
              } else {
                  _tevent.commit();
              }
          }
      }
docs: Commits the transaction in which this distributed object is involved.
  
  @see CompoundEvent#commit