function runLifecycleSync(lifecycle, plugins, manager, token) {
  plugins
    .filter(hasMethod(lifecycle))
    .forEach((plugin) => plugin[lifecycle](manager.contextFor(plugin, token)));
}
Iterates through the plugins and calls the specified synchronous lifecycle event (when present).
Passes in the appropriate context object for the plugin/job.

This function is currently being used for `afterRender` and `beforeRender`.

@param {String} lifecycle
@param {Array<HypernovaPlugin>} plugins
@param {BatchManager} manager
@param {String} [token]