protected void postProcess(MessageExchange exchange, WorkingMemory memory) throws Exception {
if (exchange.getStatus() == ExchangeStatus.ACTIVE) {
String uri = getDefaultRouteURI();
if (uri != null) {
JbiHelper helper = (JbiHelper) memory.getGlobal("jbi");
helper.route(uri);
}
}
if (exchange.getStatus() == ExchangeStatus.ACTIVE) {
fail(exchange, new Exception("No rules have handled the exchange. Check your rule base."));
}