}
public void process(Exchange exchange) throws Exception {
Object obj = exchange.getIn().getBody();
if(obj instanceof SubmitJobDuccEvent) {
SubmitJobDuccEvent submitJobEvent = exchange.getIn().getBody(SubmitJobDuccEvent.class);
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();