SubmitJobReplyDuccEvent replyJobEvent = new SubmitJobReplyDuccEvent();
replyJobEvent.setProperties(submitJobEvent.getProperties());
exchange.getIn().setBody(replyJobEvent);
}
if(obj instanceof CancelJobDuccEvent) {
CancelJobDuccEvent cancelJobEvent = exchange.getIn().getBody(CancelJobDuccEvent.class);
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();