private void executeHooks(List<AbstractHook> hooks,EventData[] events){
  if (hooks != null) {
    for (    AbstractHook hook : hooks) {
      HookAndEvents hookAndEvents=new HookAndEvents(hook,events);
      hookRouter.route(hookAndEvents,getSelf());
    }
  }
}

private void executeHooks ( List < AbstractHook > hooks , EventData [ ] events ) { if ( hooks != null ) { for ( AbstractHook hook : hooks ) { HookAndEvents hookAndEvents = new HookAndEvents ( hook , events ) ; hookRouter . route ( hookAndEvents , getSelf ( ) ) ; } } }
helper method to execute pre and post task execution hooks as independent actor invocations
