code: private void addEvent(JobID jobID, AbstractEvent event) {
  
  		synchronized (this.collectedEvents) {
  
  			List<AbstractEvent> eventList = this.collectedEvents.get(jobID);
  			if (eventList == null) {
  				eventList = new ArrayList<AbstractEvent>();
  				this.collectedEvents.put(jobID, eventList);
  			}
  
  			eventList.add(event);
  		}
  	}
docs: Adds an event to the job's event list.
  
  @param jobID
  the ID of the job the event belongs to
  @param event
  the event to be added to the job's event list