private List<TermVocabulary<NamedArea>> getVocabularies(){
List<TermVocabulary<NamedArea>> vocabularies = CdmStore.getService(IVocabularyService.class).listByTermClass(NamedArea.class, null, null, null, null);
- vocabularies.add(CdmStore.getService(IVocabularyService.class).getVocabulary(VocabularyEnum.TdwgArea));
- vocabularies.add(CdmStore.getService(IVocabularyService.class).getVocabulary(VocabularyEnum.Country));
- vocabularies.add(CdmStore.getService(IVocabularyService.class).getVocabulary(VocabularyEnum.Waterbody));
- vocabularies.add(CdmStore.getService(IVocabularyService.class).getVocabulary(VocabularyEnum.Continent));
+ vocabularies.add(CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.TdwgArea.getUuid()));
+ vocabularies.add(CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.Country.getUuid()));
+ vocabularies.add(CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.Waterbody.getUuid()));
+ vocabularies.add(CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.Continent.getUuid()));
return vocabularies;
}