throws JahiaException {
List<ObjectKey> parentKeys = getParentObjectKeys ();
List<Category> parentCategories = new ArrayList<Category>();
Iterator<ObjectKey> parentKeyIter = parentKeys.iterator ();
while (parentKeyIter.hasNext ()) {
ObjectKey curKey = parentKeyIter.next ();
if (curKey instanceof CategoryKey) {
Category curParentCategory = (Category) Category.getChildInstance (curKey, p);
parentCategories.add (0, curParentCategory);
parentKeys = curParentCategory.getParentObjectKeys();