code: @SuppressWarnings("unchecked")
      public ArrayList<Notification> getByType(Class<?> type) {
          List<?> byType = this.getByType();
          if (type.isAssignableFrom(InteractionNotification.class))
              return (ArrayList<Notification>) byType.get(0);
          if (type.isAssignableFrom(ValueNotification.class))
              return (ArrayList<Notification>) byType.get(1);
          return null;
      }
docs: Search for notifications that match the corresponding notifications realization.
  
  @param type
  can be InteractionNotification.class or ElementValueNotification.class
  @return
  a List with all notifications from the selected type.