public void addEvent(final ITraceEvent event){
  Preconditions.checkNotNull(event,"IE00781: Trace event can not be null");
  if (traceEvents.contains(event)) {
    throw new IllegalStateException("IE00782: Trace event already belongs to the trace list");
  }
  traceEvents.add(event);
  for (  final ITraceListListener listener : listeners) {
    try {
      listener.eventAdded(this,event);
    }
 catch (    final Exception exception) {
      CUtilityFunctions.logException(exception);
    }
  }
}

public void addEvent ( final ITraceEvent event ) { Preconditions . checkNotNull ( event , "IE00781: Trace event can not be null" ) ; if ( traceEvents . contains ( event ) ) { throw new IllegalStateException ( "IE00782: Trace event already belongs to the trace list" ) ; } traceEvents . add ( event ) ; for ( final ITraceListListener listener : listeners ) { try { listener . eventAdded ( this , event ) ; } catch ( final Exception exception ) { CUtilityFunctions . logException ( exception ) ; } } }
adds a trace event to the end of the list .
