docs: function(name) {
          var route = this.container.lookup('route:' + name);
          var transition = this.router ? this.router.router.activeTransition : null;
  
          // If we are mid-transition, we want to try and look up
          // resolved parent contexts on the current transitionEvent.
          if (transition) {
            var modelLookupName = (route && route.routeName) || name;
            if (transition.resolvedModels.hasOwnProperty(modelLookupName)) {
              return transition.resolvedModels[modelLookupName];
            }
          }
  
          return route && route.currentModel;
        }