config.setScanAddOn(new ScanAddOnModel());
}
scanAddOns = config.getScanAddOn();
if (scanAddOns.getErrorStrategy() == null) {
ErrorStrategyModel strategyModel = new ErrorStrategyModel();
strategyModel.setActuatorsErrorStrategy(new ErrorStrategyItemModel());
setDefaultValues(strategyModel.getActuatorsErrorStrategy());
strategyModel.setSensorsErrorStrategy(new ErrorStrategyItemModel());
setDefaultValues(strategyModel.getSensorsErrorStrategy());
strategyModel.setHooksErrorStrategy(new ErrorStrategyItemModel());
setDefaultValues(strategyModel.getHooksErrorStrategy());
strategyModel.setTimebasesErrorStrategy(new ErrorStrategyItemModel());
setDefaultValues(strategyModel.getTimebasesErrorStrategy());
scanAddOns.setErrorStrategy(strategyModel);
strategyModel.setContextValidationStrategy(ErrorStrategyType.IGNORE);
strategyModel.setContextValidationDevice(CONTEXT_VALIDATION_ATTRIBUTE_DEFAULT);
}
errorStrategy = scanAddOns.getErrorStrategy();
refresh();