code: function loadMiddleware (cb) {
      sails.log.verbose('Loading blueprint middleware...');
  
      // Start off w/ the built-in blueprint actions (generic CRUD logic)
      BlueprintController;
  
      // Get custom blueprint definitions
      sails.modules.loadBlueprints(function modulesLoaded (err, modules) {
        if (err) return cb(err);
  
        // Merge custom overrides from our app into the BlueprintController
        // in Sails core.
        _.extend(BlueprintController, modules);
  
        // Add _middlewareType keys to the functions, for debugging
        _.each(BlueprintController, function(fn, key) {
          fn._middlewareType = 'BLUEPRINT: '+fn.name || key;
        });
  
        // Save reference to blueprints middleware in hook.
        hook.middleware = BlueprintController;
  
        // When our app's controllers are finished loading,
        // merge the blueprint actions into each of them as defaults.
        sails.once('middleware:registered', hook.extendControllerMiddleware);
  
        return cb(err);
      });
    }
docs: (Re)load middleware.
  
  First, built-in blueprint actions in core Sails will be loaded.
  Then, we'll attempt to load any custom blueprint definitions from
  the user app using moduleloader.
  
  @api private