code: public boolean applyEvents(Hook k, Model i) {
          for (Event n : getEvents(k)) {
              if (!n.apply(i)) {
                  return false;
              }
          }
          return true;
      }
docs: Apply the events attached to a given hook.
  
  @param k the hook
  @param i the model to modify with the application of the events
  @return {@code true} iff all the events were applied successfully