if (routeContext.getResponse().isCommitted()) {
log.debug("The response has already been committed. Cannot use the exception handler.");
return;
}
String message = exception.getMessage();
<BUG>if (!StringUtils.isNullOrEmpty(message) && !routeContext.getResponse().getLocals().containsKey("message")) {

routeContext.setLocal("message", message);
</BUG>
}

if (routeContext.getResponse().isCommitted()) {
log.debug("The response has already been committed. Cannot use the exception handler.");
return;
}
String message = exception.getMessage();
if (!StringUtils.isNullOrEmpty(message) && !routeContext.getResponse().getLocals().containsKey(MESSAGE)) {
routeContext.setLocal(MESSAGE, message);
}
