public void addListener(IMessageListener newListener){
synchronized (listeners) {
    listeners.add(newListener);
  }
}

public void addListener ( IMessageListener newListener ) { synchronized ( listeners ) { listeners . add ( newListener ) ; } }
add a new listener
