} else{
syncSessionCondition = " and not(payload/params/param[@name='sync_session_id'])";
}
String nodeCheck = "(order_queue/order[((@setback_count > 0 and @setback != '') or @suspended = 'yes')"+syncSessionCondition+"]) | (../job_chain_node[@state='"+dependentNodeName+"']/order_queue/order[@suspended = 'yes'"+ syncSessionCondition +"])";
spooler_log.debug9(nodeCheck);
NodeList orderNodes = currentStatusXPath.selectNodeList(nodes.item(i), nodeCheck);
//dependentJobChainOrders = Integer.parseInt(nodes.item(i).getAttributes().getNamedItem("orders").getNodeValue());
dependentJobChainOrders = orderNodes.getLength();
spooler_log.debug9("node list length for currently suspended/set back orders in job chain [" + dependentJobChainPath + "], state ["+dependentNodeName+"]"+syncSessionDebug+": " + dependentJobChainOrders);
// add the currently processed order to the number of pending orders
spooler_log.debug9("dependentJobChainPath="+dependentJobChainPath + " currentJobChainPath=" + currentJobChainPath + " dependentNodeName=" + dependentNodeName + " currentNodeName=" + currentNodeName);