public void fireCommitEvent(boolean commit) {
    Object[] listeners = commitListenerList.getListenerList();

    for (int i = listeners.length - 2; i >= 0; i -= 2)
      if (listeners[i] == CommitListener.class)
        ((CommitListener) listeners[i + 1]).commit(new CommitEvent(
            this, commit));
  }
public void fireCommitEvent(boolean commit)