return level;
}
private SurveySection constructSection(Element sectionElement) {
SurveySection section = new SurveySection();
section.setSectionName(sectionElement.attributeValue("name"));
section.setColor(sectionElement.attributeValue("color"));
section.setLightColor(sectionElement.attributeValue("lightColor"));
for (Object practiceElement : sectionElement.elements("practice")) {
section.getSurveyPractices().add(constructPractice((Element) practiceElement));
}
for (SurveyPractice practice : section.getSurveyPractices()) {
practice.setSurveySection(section);
}
return section;
}