code: function (aggregate) {
      if (!aggregate || !_.isObject(aggregate)) {
        var err = new Error('Please pass a valid aggregate!');
        debug(err);
        throw err;
      }
      this.aggregate = aggregate;
    }
docs: Injects the needed aggregate.
  @param {Aggregate} aggregate The aggregate object to inject.