private void fetchSupportedStates(Character character) {
if(character.isSupportsCategoricalData()){
- List<TermDto> supportedStates = new ArrayList<>();
Set<TermVocabulary<State>> supportedCategoricalEnumerations = character.getSupportedCategoricalEnumerations();
+ List<UUID> vocUuids = new ArrayList<>();
for (TermVocabulary<State> termVocabulary : supportedCategoricalEnumerations) {
- supportedStates.addAll(CdmStore.getService(IVocabularyService.class).getTerms(termVocabulary.getUuid()));
+ vocUuids.add(termVocabulary.getUuid());
}
-// Collections.sort(supportedStates, (state1, state2)->state1.getLabel().compareTo(state2.getLabel()));
+ List<TermDto> supportedStates = new ArrayList<>(CdmStore.getService(IVocabularyService.class).getTerms(vocUuids));
categoricalFeatureToStateMap.put(character, supportedStates);
}
}