public void add(EventBean theEvent){
  if (theEvent == null) {
    throw new IllegalArgumentException("Null event not allowed");
  }
  if (firstEvent == null) {
    firstEvent=theEvent;
    return;
  }
  if (additionalEvents == null) {
    additionalEvents=new ArrayDeque<EventBean>();
  }
  additionalEvents.add(theEvent);
}

public void add ( EventBean theEvent ) { if ( theEvent == null ) { throw new IllegalArgumentException ( "Null event not allowed" ) ; } if ( firstEvent == null ) { firstEvent = theEvent ; return ; } if ( additionalEvents == null ) { additionalEvents = new ArrayDeque < EventBean > ( ) ; } additionalEvents . add ( theEvent ) ; }
add an event to the collection .
