node.appendChildren(transaction, contentList, -1);
} else {
final NodeImpl parent = (NodeImpl) node.getParentNode();
switch (mode) {
case INSERT_BEFORE:
parent.insertBefore(transaction, contentList, node);
break;
case INSERT_AFTER:
parent.insertAfter(transaction, contentList, node);
break;
}