CancelJobReplyDuccEvent replyJobEvent = new CancelJobReplyDuccEvent();
replyJobEvent.setProperties(cancelJobEvent.getProperties());
exchange.getIn().setBody(replyJobEvent);
}
if(obj instanceof SubmitReservationDuccEvent) {
SubmitReservationDuccEvent submitReservationEvent = exchange.getIn().getBody(SubmitReservationDuccEvent.class);
SubmitReservationReplyDuccEvent replyReservationEvent = new SubmitReservationReplyDuccEvent();
replyReservationEvent.setProperties(submitReservationEvent.getProperties());
exchange.getIn().setBody(replyReservationEvent);
}
if(obj instanceof CancelReservationDuccEvent) {
CancelReservationDuccEvent cancelReservationEvent = exchange.getIn().getBody(CancelReservationDuccEvent.class);
CancelReservationReplyDuccEvent replyReservationEvent = new CancelReservationReplyDuccEvent();