transitionLevel.add( new TransitionNode( (metamodel.Transition)i.next() , name ));
transitionLevel.add( new TransitionNode( t , name ));
    public StateMachineNode( StateMachine m ) {        this.machine = m;                if( m.getStateList() == null ) return;                DefaultMutableTreeNode stateLevel = new DefaultMutableTreeNode( "States" );        DefaultMutableTreeNode transitionLevel = new DefaultMutableTreeNode( "Transitions" );                Iterator i = machine.getStateList().listIterator();        while( i.hasNext() ) {                      stateLevel.add( new StateNode((metamodel.State) i.next()) ) ;                                        }                i = machine.getTransitionList().listIterator();        while( i.hasNext() ) {            Transition t = (Transition)i.next();            String name;            if( t instanceof InitialisingTransition ) {                name = "CREATE ->" + t.getToState().getName();            } else {                name = t.getFromState().getName() + " -> " + t.getToState().getName();            }                        transitionLevel.add( new TransitionNode( (metamodel.Transition)i.next() , name ));        }                add( stateLevel );        add( transitionLevel );    }