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