/**
   * Notifies all registered <tt>HistoryQueryListener</tt>s that a new record has been received.
   *
   * @param newStatus the new status
   */
  private void fireQueryStatusEvent(int newStatus) {
    HistoryQueryStatusEvent event = new HistoryQueryStatusEvent(this, newStatus);

    synchronized (queryListeners) {
      for (HistoryQueryListener l : queryListeners) {
        l.queryStatusChanged(event);
      }
    }
  }
  /**
   * Notifies all registered <tt>HistoryQueryListener</tt>s that a new record has been received.
   *
   * @param record the <tt>HistoryRecord</tt>
   */
  private void fireQueryEvent(HistoryRecord record) {
    HistoryRecordEvent event = new HistoryRecordEvent(this, record);

    synchronized (queryListeners) {
      for (HistoryQueryListener l : queryListeners) {
        l.historyRecordReceived(event);
      }
    }
  }