// project roles
Element rolesEle = DomUtils.getChildElementByTagName(projectEle, "roles");
List<Element> roleEles = DomUtils.getChildElementsByTagName(rolesEle, "role");
for(Element roleEle : roleEles) {
// project role
ProjectRole projectRole = new ProjectRole();
projectRole.setLabel(roleEle.getAttribute("label"));
String label = roleEle.getAttribute("level");
if(StringUtils.hasText(label)) {
projectRole.setLevel(Integer.parseInt(label));
}
// project authorities
List<ProjectAuthority> projectAuthorities = new ArrayList<ProjectAuthority>();
List<Element> _authorityEles = DomUtils.getChildElementsByTagName(roleEle, "authority");
for(Element authorityEle : _authorityEles) {