code: function setDomain(domain) {
      checkIsObject('domain', domain);
      checkIsString('doamin.name', domain.name);
      //test domain, domain.name
      domainsMap = domainsMap.set(domain.name, domain);
  }
docs: Set a domain.
  @param {object} domain - Object structure of the domain.