public function getLanguage($language)
{
$translations = $this->getTranslations();
if (array_key_exists($language, $translations)) {
return $translations[$language];
}
$error = 'Language Not Found';
throw new NotificationLanguageNotFoundException($error);
}