code: function setDomains(newDomains) {
      if (!isObject(newDomains)) {
          throw new InvalidException('newDomains should be an object', newDomains);
      }
      domainsMap = domainsMap.merge(newDomains);
  }
docs: Set new domains.
  @param {object} newDomains - New domains to set.
  à