Added the switchBranch method to change the current constraint list to
the existing list according to the label name.