@Override
public Processor createProcessor(RouteContext routeContext) throws Exception {
Expression expression = getExpression().createExpression(routeContext);
String delimiter = getUriDelimiter() != null ? getUriDelimiter() : DEFAULT_DELIMITER;
RoutingSlip routingSlip = new RoutingSlip(routeContext.getCamelContext(), expression, delimiter);
if (getIgnoreInvalidEndpoints() != null) {
routingSlip.setIgnoreInvalidEndpoints(getIgnoreInvalidEndpoints());
}
if (getCacheSize() != null) {
routingSlip.setCacheSize(getCacheSize());
}
return routingSlip;
}