code: public void getEventsForJob(final JobID jobID, final List<AbstractEvent> eventList,
  			final boolean includeManagementEvents) {
  
  		synchronized (this.collectedEvents) {
  
  			List<AbstractEvent> eventsForJob = this.collectedEvents.get(jobID);
  			if (eventsForJob != null) {
  
  				final Iterator<AbstractEvent> it = eventsForJob.iterator();
  				while (it.hasNext()) {
  
  					final AbstractEvent event = it.next();
  					final boolean isManagementEvent = (event instanceof ManagementEvent);
  					if (!isManagementEvent || includeManagementEvents) {
  						eventList.add(event);
  					}
  				}
  			}
  		}
  	}
docs: Retrieves and adds the collected events for the job with the given job ID to the provided list.
  
  @param jobID
  the ID of the job to retrieve the events for
  @param eventList
  the list to which the events shall be added
  @param includeManagementEvents
  <code>true</code> if {@link ManagementEvent} objects shall be added to the list as well,
  <code>false</code> otherwise