final XFormsInstance modifiedInstance;
final NodeInfo insertLocationNodeInfo;
final List<Node> insertedNodes;
final String beforeAfterInto;
if (isEmptyNodesetBinding) {
<BUG>modifiedInstance = containingDocument.getInstanceForNode(insertContextNodeInfo);
</BUG>
insertLocationNodeInfo = insertContextNodeInfo;
final Node insertLocationNode = XFormsUtils.getNodeFromNodeInfo(insertContextNodeInfo, CANNOT_INSERT_READONLY_MESSAGE);
insertedNodes = doInsert(insertLocationNode, clonedNodes);

final XFormsInstance modifiedInstance;
final NodeInfo insertLocationNodeInfo;
final List<Node> insertedNodes;
final String beforeAfterInto;
if (isEmptyNodesetBinding) {
modifiedInstance = (containingDocument != null) ? containingDocument.getInstanceForNode(insertContextNodeInfo) : null;
insertLocationNodeInfo = insertContextNodeInfo;
final Node insertLocationNode = XFormsUtils.getNodeFromNodeInfo(insertContextNodeInfo, CANNOT_INSERT_READONLY_MESSAGE);
insertedNodes = doInsert(insertLocationNode, clonedNodes);
