code: function (application) {
        var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
  
        var registry = this._super.apply(this, arguments);
        registry.register('application:main', application, { instantiate: false });
  
        if (options[_emberApplicationSystemEngine.GLIMMER]) {
          glimmerSetupRegistry(registry);
        } else {
          htmlbarsSetupRegistry(registry);
        }
  
        return registry;
      }
docs: This creates a registry with the default Ember naming conventions.
  It also configures the registry:
  registered views are created every time they are looked up (they are
  not singletons)
  registered templates are not factories; the registered value is
  returned directly.
  the router receives the application as its `namespace` property
  all controllers receive the router as their `target` and `controllers`
  properties
  all controllers receive the application as their `namespace` property
  the application view receives the application controller as its
  `controller` property
  the application view receives the application template as its
  `defaultTemplate` property
  @private
  @method buildRegistry
  @static
  @param {Ember.Application} namespace the application for which to
  build the registry
  @return {Ember.Registry} the built registry
  @public