if (!newDocstruct.getType().getAllAllowedDocStructTypes().contains(old.getType().getName())) {
Helper.setFehlerMeldung("Child element " + old.getType().getName() + " is not allowed in new element "
+ newDocstruct.getType().getName());
return inOldDocstruct;
} else {
newDocstruct.addChild(old);
}
} else {
Helper.setFehlerMeldung("Child element " + old.getType().getName() + " is not allowed in new element "
+ newDocstruct.getType().getName());
return inOldDocstruct;