replyReservationEvent.setProperties(submitReservationEvent.getProperties());
exchange.getIn().setBody(replyReservationEvent);
}
if(obj instanceof CancelReservationDuccEvent) {
CancelReservationDuccEvent cancelReservationEvent = exchange.getIn().getBody(CancelReservationDuccEvent.class);
CancelReservationReplyDuccEvent replyReservationEvent = new CancelReservationReplyDuccEvent();
replyReservationEvent.setProperties(cancelReservationEvent.getProperties());
exchange.getIn().setBody(replyReservationEvent);
}
if(obj instanceof SubmitServiceDuccEvent) {
SubmitServiceDuccEvent submitServiceEvent = exchange.getIn().getBody(SubmitServiceDuccEvent.class);
SubmitServiceReplyDuccEvent replyServiceEvent = new SubmitServiceReplyDuccEvent();