if ( tCount > 0 ) { Transition[] ts =  m.getInitialisingTransitions() ; for ( int i  = 0 ; i < tCount ; i++) { Transition t = ts[i] ; if (s.getEvent().getName().equals( t.getEvent().getName() )) {
Iterator i = m.getTransitionList().iterator(); while (i.hasNext()) { Transition t = (Transition)i.next();   if ( t.getFromState() != null ) continue;  if ( s.getEvent() == t.getEvent() ) {
    public boolean init() throws LemRuntimeException {	metamodel.Class c = instance.getInstanceClass() ;	metamodel.StateMachine m = c.getStateMachine() ;	int tCount = m.getInitialisingTransitionCount() ;		while ( true ) {	    System.out.println("InstanceInterpreter getting a next signal");	    Signal s = instance.getNextSignal() ;	    System.out.println("InstanceInterpreter got a next signal");	    	    if ( tCount > 0 ) {		Transition[] ts =  m.getInitialisingTransitions() ;		for ( int i  = 0 ; i < tCount ; i++) {		    Transition t = ts[i] ;		    if (s.getEvent().getName().equals( t.getEvent().getName() )) {			metamodel.State newState = t.getToState() ;			instance.currentState = newState ;			System.out.println("InstanceInterpreter transitioning state to " + newState.getName());			if ( newState instanceof NonDeletionState) {			    System.out.println("InstanceInterpreter executing procedure");			    Procedure p = newState.getProcedure() ;			    interpreter.interpret( p , context ) ;			    System.out.println("InstanceInterpreter done with proc");			    return true;			} else {			    return false;			}		    }		}	    }	}    }