org.switchyard.Exchange syEx = new CamelExchange(ex);
if (syEx.getState() == ExchangeState.FAULT) {
ExchangeHandler handler = syEx.getReplyHandler();
if (handler != null) {
handler.handleFault(syEx);
}
} else {
// Only call back with reply messages if the MEP is In-Out
if (ExchangePattern.IN_OUT.equals(syEx.getPattern())) {
syEx.getReplyHandler().handleMessage(syEx);