private ProcessManagerStateProcessor(ProcessManager pm) {
this.pm = pm;
}
public void process(Exchange exchange) throws Exception {
// Fetch new state from ProcessManager
PmStateDuccEvent jse = pm.getState();
// Add the state object to the Message
exchange.getIn().setBody(jse);
}