code: public List<ValueNotification> getByElementID(String elementID) {
          if(elementID == null)
              return null;
          List<ValueNotification> found = new ArrayList<ValueNotification>();
          for (Notification n: NotificationManager.notifications){
              try{
                  if (((ValueNotification)n).getElementID().equals(elementID)) {
                      logger.fine("...found a match for getByElementID query. With elementID: "+elementID);
                      found.add((ValueNotification) n);
                  }
              } catch (ClassCastException e) {
                  // Nothing to do. Its normal when comparts value an interaction notifications.  
              }
          }
          if(found.size()>0)        
              return found;
          return null;
      }
docs: Search for notifications of ElementValue type that match the given element identifier.
  @param elementID
  the identifier of the element that was notified.
  @return
  A list with the notifications saved for the given element identifier.