/**
* Validate default webspace localization.
*
* @throws Exception\InvalidWebspaceDefaultLocalizationException
*/
protected function validateWebspaceDefaultLocalization()
{
try {
$this->validateDefaultLocalization($this->webspace->getLocalizations());
} catch (InvalidDefaultLocalizationException $ex) {
throw new InvalidWebspaceDefaultLocalizationException($this->webspace);
}
}