@SuppressWarnings("unchecked") protected void notifyMessage(XpaMessage m,XpaListener notMe){
  Vector<XpaListener> v;
synchronized (this) {
    v=(Vector<XpaListener>)cmdListeners.clone();
  }
  int cnt=v.size();
  for (int i=0; i < cnt; i++) {
    XpaListener client=v.elementAt(i);
    if (notMe != client) {
      if (log.isDebugEnabled()) {
        log.debug("notify client: " + client);
      }
      try {
        client.message(m);
      }
 catch (      Exception e) {
        log.warn("notify: During dispatch to " + client + "\nException "+ e);
      }
    }
  }
}

@ SuppressWarnings ( "unchecked" ) protected void notifyMessage ( XpaMessage m , XpaListener notMe ) { Vector < XpaListener > v ; synchronized ( this ) { v = ( Vector < XpaListener > ) cmdListeners . clone ( ) ; } int cnt = v . size ( ) ; for ( int i = 0 ; i < cnt ; i ++ ) { XpaListener client = v . elementAt ( i ) ; if ( notMe != client ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "notify client: " + client ) ; } try { client . message ( m ) ; } catch ( Exception e ) { log . warn ( "notify: During dispatch to " + client + "\nException " + e ) ; } } } }
forward a xpamessage to all registered xpainterface listeners .
