engine.getEventProcessor().addEventProcessorListener(new AbstractEventProcessorListener()
{
@Override
public void comeToState(StateMachineContext context, StateMachinePath path, String stateName)
{
State state = model.getStateMachine(path.getStateMachine()).findState(stateName);
if (! state.getName().equals("RETURN"))
{
prepareForNextEvent(state);
}
else
{