text: var verbose = require('./../logger').onVerbose,
      hook_timer = require('./hook_timer'),
      injectPlugins = require('./../classes/injectPlugins'),
      initialize;
  
  
  module.exports = function (hooks, server, app, express, plugins, next) {
  
      var timer;
  
      var onBeforeBodyParserPlugins = plugins.filter(function (plugin) {
          return plugin.hook === 'onBeforeBodyParser';
      });
  
      var onAfterHookInjections = function () {
  
          if (hooks.onBeforeBodyParser) {
              timer = hook_timer(hooks.onBeforeBodyParser, 'onBeforeBodyParser');
              verbose("Glad: Hooks :: onBeforeBodyParser");
              hooks.onBeforeBodyParser(server, app, express, function () {
                  clearTimeout(timer);
                  next();
              });
          } else {
              next();
          }
      }
  
      injectPlugins(onBeforeBodyParserPlugins, server, app, express, onAfterHookInjections);
  
  
  };