.marshal(jaxb);
}
private static final class IncrementProcessor implements Processor {
public void process(Exchange exchange) throws Exception {
IncrementRequest request = exchange.getIn().getBody(IncrementRequest.class);
IncrementResponse response = new IncrementResponse();
int result = request.getInput() + 1; // increment input value
response.setResult(result);
exchange.getOut().setBody(response);
}