code: public void addTransition(QName name, ElementSelector<T> target) {
          buildState().addTransition(new ElementEqualsConstraint(name), 
                                     target.buildState());
      }
docs: Create a transition to another node state represented by its
  {@link ElementSelector}.
  
  @param name QName of the element on which to transition
  @param target target node state to which the transition leads