context.getRouteDefinition("encrypt")
.adviceWith(context, new AdviceWithRouteBuilder() {
@Override
public void configure() throws Exception {
interceptSendToEndpoint("direct:decrypt")
.when(namespaces.xpath(cityExistsXPath))
.to("mock:incorrectlyEncrypted");
}
});
context.getRouteDefinition("decrypt")
.adviceWith(context, new AdviceWithRouteBuilder() {