@Override
protected void loadPropertiesFromCamelDefinition(ProcessorDefinition processor) {
super.loadPropertiesFromCamelDefinition(processor);
if (processor instanceof TransformDefinition) {
TransformDefinition node = (TransformDefinition) processor;
this.setInheritErrorHandler(Objects.<Boolean>getField(node, "inheritErrorHandler"));
this.setExpression(node.getExpression());
} else {
throw new IllegalArgumentException("ProcessorDefinition not an instanceof TransformDefinition. Was " + processor.getClass().getName());
}
}