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