public void setActiveBranch(@NonNull String nodeName, int branchIdx) {
        states.get(nodeName).setActiveBranch(branchIdx);
    }
public void setActiveBranch ( @ NonNull String nodeName , int branchIdx ) { states . get ( nodeName ) . setActiveBranch ( branchIdx ) ; }
This method sets active/inactive branch for divergent nodes (aka Switch)

@param nodeName
@param branchIdx