code: function (cmd) {
      var cmdName = dotty.get(cmd, this.definitions.command.name);
  
      if (!cmdName) {
        var err = new Error('command has no command name in ' + this.definitions.command.name);
        debug(err);
        throw err;
      }
  
      var version = 0;
      if (!!this.definitions.command.version) {
        version = dotty.get(cmd, this.definitions.command.version);
      }
  
      var command = this.getCommand(cmdName, version);
      if (!command) {
        var aggregateId = dotty.get(cmd, this.definitions.command.aggregateId);
        var aggregateName = this.name;
        var contextName = this.context.name;
  
        return [{
          context: contextName,
          aggregate: aggregateName,
          aggregateId: aggregateId
        }];
      }
  
      return command.getLoadInfo(cmd);
    }
docs: Get infos to load correct stream.
  @param {Object} cmd The command object.
  @returns {Array}