/**
  * Update the nameservers for the given domain
  *
  * @param string $domain      The domain to be changed
  * @param array  $nameservers The new set of nameservers
  *
  * @return bool Was update successful or not
  */
 public function updateNameServers($domain, $nameservers = array())
 {
     if (!$this->_checkLogin()) {
         return false;
     }
     try {
         $this->odr->getDomainInfo($domain);
     } catch (Api_Odr_Exception $e) {
         $this->Error[] = $e->getMessage();
         return false;
     }
     $info = $this->odr->getResult();
     if ($info['status'] !== Api_Odr::STATUS_SUCCESS) {
         return $this->parseError($info['response']);
     }
     $info = $info['response'];
     $parameters = $this->convertNameservers($domain, $nameservers);
     $parameters['domain_name'] = $info['domain_name'];
     $parameters['auth_code'] = $info['auth_code'];
     foreach ($info['contacts_map'] as $contactType => $contactId) {
         $parameters['contact_' . strtolower($contactType)] = $contactId;
     }
     try {
         $this->odr->updateDomain($domain, $parameters);
     } catch (Api_Odr_Exception $e) {
         $this->Error[] = $e->getMessage();
         return false;
     }
     return $this->_checkResult(true);
 }