} else if (childForm instanceof MRestForm) {
MRestForm contentForm = (MRestForm) childForm;
MRest contentNode = (MRest) contentForm.getMeiNode();
return contentNode;
} else if (childForm instanceof SpaceForm) {
SpaceForm contentForm = (SpaceForm) childForm;
Space contentNode = (Space) contentForm.getMeiNode();
return contentNode;
} else if (childForm instanceof DynamForm) {
DynamForm contentForm = (DynamForm) childForm;
Dynam contentNode = (Dynam) contentForm.getMeiNode();
for (BasicElement contentChildForm : contentForm.getChildren()) {
contentNode.getContent().add(
handleScoreChild(contentChildForm, saveAllVariants));
}
return contentNode;
} else if (childForm instanceof TieForm) {
TieForm contentForm = (TieForm) childForm;
Tie contentNode = (Tie) contentForm.getMeiNode();
return contentNode;
} else if (childForm instanceof SlurForm) {
SlurForm contentForm = (SlurForm) childForm;
Slur contentNode = (Slur) contentForm.getMeiNode();
return contentNode;
} else if (childForm instanceof FermataForm) {
FermataForm contentForm = (FermataForm) childForm;
Fermata contentNode = (Fermata) contentForm.getMeiNode();
return contentNode;
} else {
// write back a node of a currently unknown type
UnknownMeiNodeForm contentForm = (UnknownMeiNodeForm) childForm;
return contentForm.getMeiNode();
}
}