try {
action.execute(context);
} catch (Exception exception) {
exception.printStackTrace();
String exceptionName = exception.getClass().getName();
ExceptionScopeInstance exceptionScopeInstance = (ExceptionScopeInstance)
resolveContextInstance(ExceptionScope.EXCEPTION_SCOPE, exceptionName);
if (exceptionScopeInstance == null) {
exception.printStackTrace();
throw new IllegalArgumentException(
"Could not find exception handler for " + exceptionName + " while executing node " + getNodeId());
}
exceptionScopeInstance.handleException(exceptionName, exception);
}
}