handleScoreChild(sectionChildForm, saveAllVariants));
}
return section;
} else if (childForm instanceof EndingForm) {
EndingForm endingForm = (EndingForm) childForm;
Ending ending = (Ending) endingForm.getMeiNode();
ending.getRegsAndSuppliedsAndCurves().clear();
for (BasicElement endingChildForm : endingForm.getChildren()) {
ending.getRegsAndSuppliedsAndCurves().add(
handleScoreChild(endingChildForm, saveAllVariants));
}
return ending;
} else if (childForm instanceof ScoreDefForm) {
ScoreDefForm contentForm = (ScoreDefForm) childForm;