new PackageUUIDType(asset.getPackage().getUUID()),
RoleTypes.PACKAGE_DEVELOPER);
} catch (RuntimeException e) {
if (asset.getCategories().size() == 0) {
Identity.instance().checkPermission(
new CategoryPathType(null), RoleTypes.ANALYST);
} else {
RuntimeException exception = null;
for (CategoryItem cat : asset.getCategories()) {
try {
Identity.instance().checkPermission(
new CategoryPathType(cat.getName()),
RoleTypes.ANALYST);
passed = true;
} catch (RuntimeException re) {
exception = re;
}