replace deprecated WebUtils getAllowedLanguages usage in method
generateLanguageMenu