indentedLogger.logDebug("xforms:setvalue", "setting instance value", "source", source, "value", valueToSet,
"changed", Boolean.toString(changed),
"instance", (modifiedInstance != null) ? modifiedInstance.getEffectiveId() : "N/A");
}
if (changed) {
<BUG>XFormsInstance.setValueForNodeInfo(containingDocument, eventTarget, currentNode, valueToSet, type);
final XFormsInstance modifiedInstance = containingDocument.getInstanceForNode(currentNode);</BUG>
if (modifiedInstance != null) {// can be null if you set a value in a non-instance doc
modifiedInstance.getModel(containingDocument).markValueChange(currentNode, isCalculate);
final XBLContainer modifiedContainer = modifiedInstance.getXBLContainer(containingDocument);

indentedLogger.logDebug("xforms:setvalue", "setting instance value", "source", source, "value", valueToSet,
"changed", Boolean.toString(changed),
"instance", (modifiedInstance != null) ? modifiedInstance.getEffectiveId() : "N/A");
}
if (changed) {
XFormsInstance.setValueForNodeInfo(containingDocument, eventTarget, currentNode, valueToSet, type);
if (containingDocument != null) {
final XFormsInstance modifiedInstance = containingDocument.getInstanceForNode(currentNode);
if (modifiedInstance != null) {// can be null if you set a value in a non-instance doc
modifiedInstance.getModel(containingDocument).markValueChange(currentNode, isCalculate);
final XBLContainer modifiedContainer = modifiedInstance.getXBLContainer(containingDocument);
