return expression.evaluate(exchange, String.class);
}
Processor target = processor;
if (target != null && target instanceof Traceable) {
Traceable trace = (Traceable) target;
return trace.getTraceLabel();
}
// Compatiblity for old Traceable interface
if (target != null && target instanceof org.apache.camel.processor.Traceable) {
org.apache.camel.processor.Traceable trace = (org.apache.camel.processor.Traceable) target;
return trace.getTraceLabel();
}
// default then to definition
return processorDefinition.getLabel();
}