public CompositeListener addListener(JAMonListener listener){
  if (listener instanceof CompositeListener || !hasListener(listener.getName())) {
    listenerList.add(listener);
  }
  return this;
}

public CompositeListener addListener ( JAMonListener listener ) { if ( listener instanceof CompositeListener || ! hasListener ( listener . getName ( ) ) ) { listenerList . add ( listener ) ; } return this ; }
add a listener to the composite and return this object
