code: public void fire(EventDefinition eventDefinition, Event eventDetails) {
          if (eventDefinition.getType() == EventDefinition.TYPE_POST) {
              fire(listenersPost, eventDefinition, eventDetails);
          } else {
              fire(listeners, eventDefinition, eventDetails);
          }
      }
docs: Fire a new event and run all the listeners.
  
  @param eventDefinition
  @param eventDetails