if (param.error) {
                            logger.debug("Generating handler plugin on error (error)");
                            plugin = {name: 'generatedHandlerError', fn: param.error};
                            plugin.scope = param.scope || plugin;
                            ret.push(new HandlerErrorPlugin(plugin));