sourceNodes = Collections.singletonList(singleSourceNode);
clonedNodesTemp = Collections.singletonList(singleClonedNode);
originItems = null;
} else {
if (originItems.size() == 0) {
<BUG>if (indentedLogger.isDebugEnabled())
indentedLogger.logDebug("xforms:insert", "origin node-set is empty, terminating");</BUG>
return Collections.EMPTY_LIST;
}
sourceNodes = new ArrayList<Node>(originItems.size()); // set to max possible size

sourceNodes = Collections.singletonList(singleSourceNode);
clonedNodesTemp = Collections.singletonList(singleClonedNode);
originItems = null;
} else {
if (originItems.size() == 0) {
if (indentedLogger != null && indentedLogger.isDebugEnabled())
indentedLogger.logDebug("xforms:insert", "origin node-set is empty, terminating");
return Collections.EMPTY_LIST;
}
sourceNodes = new ArrayList<Node>(originItems.size()); // set to max possible size
