allCategories.add(cat);
}
}
// build category path
WeblogCategory parent = getCategory().getParent();
if(parent != null) {
List categoryPath = new LinkedList();
categoryPath.add(0, getCategory());
while (parent != null) {
categoryPath.add(0, parent);
parent = parent.getParent();
}
setCategoryPath(categoryPath);
}
} catch (WebloggerException ex) {
log.error("Error building categories list", ex);