}
protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
public void configure() {
TryType tryType = from("direct:start").tryBlock().
process(validator).
to("mock:valid");
tryType.handle(ValidationException.class).to("mock:invalid");
tryType.finallyBlock().to("mock:all");
}
};
}