docs: function generateControllerFactory(container, controllerName, context) {
        var Factory, fullName, instance, name, factoryName, controllerType;
  
        if (context && isArray(context)) {
          controllerType = 'array';
        } else if (context) {
          controllerType = 'object';
        } else {
          controllerType = 'basic';
        }
  
        factoryName = 'controller:' + controllerType;
  
        Factory = container.lookupFactory(factoryName).extend({
          isGenerated: true,
          toString: function() {
            return "(generated " + controllerName + " controller)";
          }
        });
  
        fullName = 'controller:' + controllerName;
  
        container.register(fullName,  Factory);
  
        return Factory;
      }