}
<BUG>_portletExporter.exportCategories(context, root);
</BUG>
context.addZipEntry(
context.getRootPath() + "/categories-hierarchy.xml",
<BUG>doc.formattedString());

}
catch (Exception e) {
throw new SystemException(e);
}</BUG>
}

}
Element categoriesElement = rootElement.addElement("categories");
List<AssetCategory> assetCategories =
AssetCategoryUtil.findByGroupId(context.getGroupId());
for (AssetCategory assetCategory : assetCategories) {
_portletExporter.exportCategory(
context, vocabulariesElement, categoriesElement, assetCategory);
}
_portletExporter.exportCategories(context, rootElement);
context.addZipEntry(
context.getRootPath() + "/categories-hierarchy.xml",
document.formattedString());
}
