context.finishProcess( context.getCurrentProcess() ); } else { context.enterState( destination );
location.finishProcess( context.getCurrentProcess() );
    protected void followTransition(ProcessContext context,                                    Transition transition) throws InvalidMotionException    {        State destination = transition.getDestination();        context.exitState( context.getCurrentState() );        if ( destination == null )        {            context.finishProcess( context.getCurrentProcess() );        }        else        {            context.enterState( destination );        }    }