private void handleResetResult(ProviderResetResultMessage message) {
   // remove all results and notify listeners
   ResultImpl result = results.get(message.getID());
   Iterator<DatedObject> i = result.getResultSet().iterator();
   while (i.hasNext()) {
     result.fireResultRemoved(i.next());
     i.remove();
   }
 }
 private void handleObject(ProviderObjectsMessage message) {
   ResultImpl result = results.get(message.getID());
   switch (message.getAction()) {
     case ADD:
       for (DatedObject obj : message.getObjects()) {
         System.out.println("Add object " + obj);
         result.addResult(obj);
       }
       break;
     case REMOVE:
       for (DatedObject obj : message.getObjects()) {
         result.removeResult(obj);
       }
       break;
   }
 }