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