<BUG>}Collection<? extends Action<S, E>> actions = getExitActions();if (actions != null && !isLocal(context)) {for (Action<S, E> action : actions) {</BUG><CONTEXT>&& context.getTransition().getSource().getId() != getSubmachine().getState().getId()) {getSubmachine().stop();} else if (context.getTransition() != null && !StateMachineUtils.isSubstate(context.getTransition().getTarget(), context.getTransition().getSource())) {getSubmachine().stop();<extra_id_0>executeAction(action, context);</CONTEXT>
if (!isLocal(context)) {for (Action<S, E> action : getExitActions()) {