code: function(license) {
                  console.log('borrowInterface.resource.addLicense', license);
                  corbel.validate.value('id', this.id);
                  return this.request({
                      url: this._buildUri(this.uri, this.id, 'license'),
                      method: corbel.request.method.POST,
                      data: license
                  }).then(function(res) {
                      return corbel.Services.getLocationId(res);
                  });
              }
docs: Add license to loanable resource.
  
  @method
  @memberOf corbel.Borrow.BorrowBuilder
  
  @param {Object} data   licenses data.
  @param {Object} license                 The license data.
  @param {String} license.resourceId      Identifier of resource
  @param {number} licensee.availableUses  Amount of uses that the resource is available
  @param {number} license.availableLoans  Amount of concurrent loans are available for the resource
  @param {timestamp} license.expire       Expire date
  @param {timestamp} licensee.start       Start date
  @param {String} license.asset           Asigned to the resource
  
  @return {Promise} A promise with the id of the created a license or fails
  with a {@link corbelError}.