docs: function setDomains(newDomains) {
      if (!isObject(newDomains)) {
          throw new InvalidException('newDomains should be an object', newDomains);
      }
      domainsMap = domainsMap.merge(newDomains);
  }