private function parseHostnames(\SimpleXMLElement $xmlHostnames)
{
$hostnames = array();
foreach ($xmlHostnames as $hostname) {
$hostnames[] = new Hostname((string) $hostname->attributes()->name, (string) $hostname->attributes()->type);
}
return $hostnames;
}