// the header name can be an expression too, that should override
// whatever configured on the endpoint
if (StringHelper.hasStartToken(name, "simple")) {
log.trace("{} contains a Simple expression: {}", Exchange.FILE_NAME, name);
Language language = getEndpoint().getCamelContext().resolveLanguage("file");
expression = language.createExpression(name);
}
}
if (expression != null) {
log.trace("Filename evaluated as expression: {}", expression);
name = expression.evaluate(exchange, String.class);