code: function(name, options) {
          if (this.generators.hasOwnProperty(name)) {
            return this.generators[name];
          }
  
          if (~name.indexOf('.')) {
            return this.getSubGenerator.apply(this, arguments);
          }
  
          var opts = utils.extend({}, this.options, options);
          if (typeof opts.lookup === 'function') {
            var app = this.lookupGenerator(name, opts, opts.lookup);
            if (app) {
              return app;
            }
          }
          return this.matchGenerator(name);
        }
docs: Private method used by `.findGenerator`.