// store the last to endpoint as the failure endpoint
exchange.setProperty(Exchange.FAILURE_ENDPOINT, exchange.getProperty(Exchange.TO_ENDPOINT));
// the failure processor could also be asynchronous
AsyncProcessor afp = AsyncProcessorTypeConverter.convert(processor);
sync = AsyncProcessorHelper.process(afp, exchange, new AsyncCallback() {
public void done(boolean sync) {
if (log.isTraceEnabled()) {
log.trace("Failure processor done: " + processor + " processing Exchange: " + exchange);
}