code: public static void dispatch(final Guard guard, final String eventName, final DelegateExecution execution) {
      if (skipGuards(execution)) {
        return;
      }
  
      if (isPrecondition.apply(eventName))
        guard.checkPreconditions(execution);
      else if (isPostcondition.apply(eventName))
        guard.checkPostconditions(execution);
    }
docs: Helper method for event dispatch. <br />
  This method is used in abstract implementations {@link TaskGuard} and
  {@link ActivityGuard}
  
  @param guard
  guard to be used for checks.
  @param eventName
  event from camunda listener.
  @param execution
  process execution.