// unfortunately, the network managed by the algorithm and the one linked to the SSBN may not be the same (because algorithm may instantiate another network)
boolean isStateInNode = false; // indicates if node contains the specified state (true if evidence is to a valid state)
for(int i = 0; i < node.getStatesSize(); i++){
// check if the name of the state in the SSBN node is the same in the node in actual network managed by the algorithm
if(node.getStateAt(i).equals(stateName)){
node.addFinding(i);
// ssbnFindingNode.getProbNode().addFinding(i); // add to original node as well, just to make sure
isStateInNode = true;
break;
}
}