List<AtomCategory> categoryBeans = cats.getCategories();
// Loop over a list of Category Beans and add them to Service Document
// collection
for (AtomCategory cat : categoryBeans) {
AtomCategory xmlCategory = new AtomCategory();
String catLabel = cat.getLabel();
if (catLabel != null) {
xmlCategory.setLabel(catLabel);
}
String catScheme = cat.getScheme();
if (catScheme != null) {
xmlCategory.setScheme(catScheme);
}
String catTerm = cat.getTerm();
if (catTerm != null) {
xmlCategory.setTerm(catTerm);
}
xmlCategoryList.add(xmlCategory);
}
String catsScheme = cats.getScheme();