code: public synchronized void addEvent(WorkManagerEvent event)
     {
        if (trace)
           log.tracef("addEvent(%s)", event);
  
        List<WorkManagerEvent> e = events.get(event.getAddress().getWorkManagerName());
  
        if (e == null)
        {
           e = new ArrayList<WorkManagerEvent>();
           events.put(event.getAddress().getWorkManagerName(), e);
        }
  
        e.add(event);
     }
docs: Add an event
  @param event The event