You can remove both LanguageUtils from above and simply do: ``return doc.getLanguage()`` as of sprint 21.