SubmitServiceReplyDuccEvent replyServiceEvent = new SubmitServiceReplyDuccEvent();
replyServiceEvent.setProperties(submitServiceEvent.getProperties());
exchange.getIn().setBody(replyServiceEvent);
}
if(obj instanceof CancelServiceDuccEvent) {
CancelServiceDuccEvent cancelServiceEvent = exchange.getIn().getBody(CancelServiceDuccEvent.class);
CancelServiceReplyDuccEvent replyServiceEvent = new CancelServiceReplyDuccEvent();
replyServiceEvent.setProperties(cancelServiceEvent.getProperties());
exchange.getIn().setBody(replyServiceEvent);
}
}