if (eDesc!=null) {
String taxonomy = getTaxonomy(eDesc);
List eValues = eDesc.getChildren("value",Namespace.getNamespace(RDF_URI));
for (int j=0;j<eValues.size();j++) {
Element eValue = (Element) eValues.get(j);
DCSubject subject = new DCSubjectImpl();
subject.setTaxonomyUri(taxonomy);;
subject.setValue(eValue.getText());
subjects.add(subject);
}
}
else {
DCSubject subject = new DCSubjectImpl();
subject.setValue(eSubject.getText());
subjects.add(subject);
}
}
return subjects;
}