siblingElements.add(actualInsertionIndex + addIndex, clonedNode);
insertedNodes.add(clonedNode);
hasTextNode |= clonedNode.getNodeType() == Node.TEXT_NODE;
addIndex++;
} else {
<BUG>if (indentedLogger.isDebugEnabled())
indentedLogger.logDebug("xforms:insert", "skipping insertion of node as sibling in element content",</BUG>
"type", clonedNode.getNodeTypeName(),
"node", clonedNode instanceof Attribute ? Dom4jUtils.attributeToDebugString((Attribute) clonedNode) : clonedNode.toString()
);

siblingElements.add(actualInsertionIndex + addIndex, clonedNode);
insertedNodes.add(clonedNode);
hasTextNode |= clonedNode.getNodeType() == Node.TEXT_NODE;
addIndex++;
} else {
if (indentedLogger != null && indentedLogger.isDebugEnabled())
indentedLogger.logDebug("xforms:insert", "skipping insertion of node as sibling in element content",
"type", clonedNode.getNodeTypeName(),
"node", clonedNode instanceof Attribute ? Dom4jUtils.attributeToDebugString((Attribute) clonedNode) : clonedNode.toString()
);
