// moved node with a parent deleted (deletion published) -> oldCn ==
// null
if (oldCn != null) {
if (!(cn.getIdent().equals(oldCn.getIdent()))) { throw new AssertException("deleted cn.getIdent != oldCn.getIdent"); }
}
cetn.removeFromParent();
if (!cetn.isNewnode()) {
// only clean up and archive of nodes which were already in run
// save data, remove references
deleteRefs(oldCn);
oldCn.archiveNodeData(locale, course, exportDirectory, charset);