Map<UUID,DefinedTermBase> terms = new HashMap<UUID,DefinedTermBase>();\r
\r
for(DefinedTermBase d : persistedTerms.values()) {\r
Map<UUID,DefinedTermBase> terms = new HashMap<UUID,DefinedTermBase>();\r
\r
for(DefinedTermBase d : persistedTerms.values()) {\r
TermVocabulary persistedVocabulary = vocabularyDao.findByUuid(vocabularyUuid);\r
if(persistedVocabulary == null) { // i.e. there is no persisted vocabulary\r
TermVocabulary persistedVocabulary = vocabularyDao.findByUuid(vocabularyUuid);\r
if(persistedVocabulary == null) { // i.e. there is no persisted vocabulary\r
boolean persistedVocabularyHasMissingTerms = false;\r
for(Object t : loadedVocabulary.getTerms()) { \r
if(!persistedVocabulary.getTerms().contains(t)) {\r
boolean persistedVocabularyHasMissingTerms = false;\r
for(Object t : loadedVocabulary.getTerms()) { \r
if(!persistedVocabulary.getTerms().contains(t)) {\r