List permissionsList = accessRights.getAccessRights();
if (permissionsList != null) {
int j =0;
for (Iterator i = permissionsList.iterator(); i.hasNext();) {
j++;
AccessRight permission = (AccessRight)i.next();
MessageResources mrPermission = CoreUtil.getMessageResources(request.getSession(), permission.getPermission().getBundle());
String permissionName = mrPermission.getMessage("permission."+permission.getPermission().getId()+".title").trim();
MessageResources mrResourceType = CoreUtil.getMessageResources(request.getSession(), permission.getResourceType().getBundle());
String resourceTypeName = mrResourceType.getMessage("resourceType."+permission.getResourceType().getResourceTypeId()+".title").trim();
coreEvent.addAttribute(CoreAttributeConstants.EVENT_ATTR_TYPE_PERMISSION + Integer.toString(j), permissionName + " " + resourceTypeName);
}
}
CoreServlet.getServlet().fireCoreEvent(coreEvent);