RoleSet projectRoleSet = roleManager.getProjectRoleSet();
if (!projectRoleSet.isEmpty()) {
startElement("roles", attrs, handler);
Role[] projectRoles = projectRoleSet.getRoles();
for (int i = 0; i < projectRoles.length; i++) {
Role next = projectRoles[i];
addAttribute("id", next.getPersistentID(), attrs);
addAttribute("name", next.getName(), attrs);
emptyElement("role", attrs, handler);
}
endElement("roles", handler);
}
}