source/tools/jboss-v7-tool/src/main/java/com/uc4/ara/feature/jbossv7/CompareJBossV7Snapshot.java
private void updateNodeState(Node node) {

        Node parent = node.getParentNode();

        if (parent!=null && !((Element)parent).getNodeName().equals("snapshot"))
        {
            ((Element)parent).setAttribute("state", "different");
            updateNodeState( parent);
        }
    }
/**Set the same state to the parent node of the current node
     * @param node
     */
Set the same state to the parent node of the current node
@param node
Set the same state to the parent node of the current node @param node
private void updateNodeState(Node node) {
        Node parent = node.getParentNode();
        if (parent!=null && !((Element)parent).getNodeName().equals("snapshot"))
        {
            ((Element)parent).setAttribute("state", "different");
            updateNodeState( parent);
        }
    }
private void updateNodeState ( Node node ) { Node parent = node . getParentNode ( ) ; if ( parent != null && ! ( ( Element ) parent ) . getNodeName ( ) . equals ( "snapshot" ) ) { ( ( Element ) parent ) . setAttribute ( "state" , "different" ) ; updateNodeState ( parent ) ; } }
Set the same state to the parent node of the current node
 @param node
Set the same state to the parent node of the current node @param node