public Language getLanguageForCode(String code) {
   if (Strings.isBlank(code)) {
     return null;
   }
   Query<Language> query = Query.of(Language.class).withField(Language.CODE, code);
   return modelService.search(query).getFirst();
 }
 public LexicalCategory getLexcialCategoryForCode(String code) {
   if (Strings.isBlank(code)) {
     return null;
   }
   Query<LexicalCategory> query =
       Query.of(LexicalCategory.class).withField(LexicalCategory.CODE, code);
   return modelService.search(query).getFirst();
 }