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