Do not modify generateLanguageMask, but instead use proper key/value association from LanguageCode Criterion.