public function setSupportedLocales(array $supportedLocales)
{
if (!is_array($supportedLocales) || empty($supportedLocales)) {
throw new UndefinedSupportedLocalesException();
}
$this->supportedLocales = $this->filterLocales($supportedLocales);
return $this;
}