}
protected void _generateTransitionActionsEffect(final TransitionExceptionEffect effect, final Transition transition, final ITreeAppendable appendable) {
TransitionEffect _effect = transition.getEffect();
if ((_effect instanceof TransitionExceptionEffect)) {
ITreeAppendable _append = appendable.append("try {");
ITreeAppendable _increaseIndentation = _append.increaseIndentation();
_increaseIndentation.newLine();
}
this._generateTransitionActionsEffect(((TransitionEffect) effect), transition, appendable);
TransitionEffect _effect_1 = transition.getEffect();
if ((_effect_1 instanceof TransitionExceptionEffect)) {
TransitionEffect _effect_2 = transition.getEffect();
final JvmParameterizedTypeReference exceptionClass = ((TransitionExceptionEffect) _effect_2).getExceptionClass();
String _qualifiedName = exceptionClass.getQualifiedName();
final String exceptionClassName = this._util.removeJavaLang(_qualifiedName);
StringConcatenation _builder = new StringConcatenation();
_builder.append(exceptionClassName, "");
_builder.append(" should be thrown after ");
EList<TransitionAction> _actions = transition.getActions();
String _asSourceText = this._util.asSourceText(_actions, ", ");
_builder.append(_asSourceText, "");
final String message = _builder.toString();
StringConcatenation _builder_1 = new StringConcatenation();
_builder_1.append("fail(\"");
String _quote = this._util.quote(message, "\"");
_builder_1.append(_quote, "");
_builder_1.append("\");");
appendable.append(_builder_1);
ITreeAppendable _decreaseIndentation = appendable.decreaseIndentation();
ITreeAppendable _newLine = _decreaseIndentation.newLine();
_newLine.append("}");
String exceptionVar = appendable.declareSyntheticVariable(transition, "e");
StringConcatenation _builder_2 = new StringConcatenation();
_builder_2.append(" ");
_builder_2.append("catch (Exception ");
_builder_2.append(exceptionVar, " ");
_builder_2.append(") {");
ITreeAppendable _append_1 = appendable.append(_builder_2);
ITreeAppendable _increaseIndentation_1 = _append_1.increaseIndentation();
_increaseIndentation_1.newLine();
StringConcatenation _builder_3 = new StringConcatenation();
_builder_3.append("assertTrue(\"");
String _quote_1 = this._util.quote(message, "\"");
_builder_3.append(_quote_1, "");
_builder_3.append("\", ");
_builder_3.append(exceptionVar, "");
_builder_3.append(" instanceof ");
_builder_3.append(exceptionClassName, "");
_builder_3.append(");");
appendable.append(_builder_3);
ITreeAppendable _decreaseIndentation_1 = appendable.decreaseIndentation();
ITreeAppendable _newLine_1 = _decreaseIndentation_1.newLine();
ITreeAppendable _append_2 = _newLine_1.append("}");
_append_2.newLine();
}
}