}
private Category parseCategory(final String baseURI, final Element eCategory) {
final Category category = new Category();
final String term = getAttributeValue(eCategory, "term");
if (term != null) {
category.setTerm(term);
}
final String scheme = getAttributeValue(eCategory, "scheme");
if (scheme != null) {
category.setScheme(scheme);
if (isRelativeURI(scheme)) {
category.setSchemeResolved(resolveURI(baseURI, eCategory, scheme));
}
}
final String label = getAttributeValue(eCategory, "label");
if (label != null) {
category.setLabel(label);
}
return category;
}