protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
from("direct:start")
.aggregate(header("id"), new BodyInAggregatingStrategy())
// if no timeout header it will fallback to the 2000 seconds
.completionTimeout(header("timeout")).completionTimeout(2000)
.to("mock:aggregated");
}
};