code: public void putEvents(List<Event> events) {
          List<Event> filteredEvents = filterEvents(events);
          executeHandlers(filteredEvents);
          for (Event event : filteredEvents) {
              persistenceHandler.writeEvent(event);
          }
      }
docs: Executes all event manipulating handler and writes the event with persist
  handler.
  
  @param events the events