public ThesaurusRequest(ServiceContext context, WeakHashMap<String, Map<String, String>> categoryTranslations, Set<String> localesToLoad, Thesaurus thesaurus) {
this.localesToLoad = localesToLoad;
this.serviceContext = context;
this.categoryTranslations = categoryTranslations;
this.thesaurus = thesaurus;
this.searchBuilder = new KeywordSearchParamsBuilder(thesaurus.getIsoLanguageMapper());
for (String lang : localesToLoad) {
searchBuilder.addLang(lang);
}
searchBuilder.addThesaurus(thesaurus.getKey());
searchBuilder.requireBoundedBy(true);