private void fireEvent(final IRunningQuery q){
  if (q == null)   throw new IllegalArgumentException();
  if (listeners.isEmpty()) {
    return;
  }
  final IRunningQueryListener[] a=listeners.toArray(new IRunningQueryListener[0]);
  for (  IRunningQueryListener l : a) {
    final IRunningQueryListener listener=l;
    try {
      listener.notify(q);
    }
 catch (    Throwable t) {
      if (InnerCause.isInnerCause(t,InterruptedException.class)) {
        throw new RuntimeException(t);
      }
      log.error(t,t);
    }
  }
}

private void fireEvent ( final IRunningQuery q ) { if ( q == null ) throw new IllegalArgumentException ( ) ; if ( listeners . isEmpty ( ) ) { return ; } final IRunningQueryListener [ ] a = listeners . toArray ( new IRunningQueryListener [ 0 ] ) ; for ( IRunningQueryListener l : a ) { final IRunningQueryListener listener = l ; try { listener . notify ( q ) ; } catch ( Throwable t ) { if ( InnerCause . isInnerCause ( t , InterruptedException . class ) ) { throw new RuntimeException ( t ) ; } log . error ( t , t ) ; } } }
send an event to all registered listeners .
