}
return model;
}
protected IScanAddOns initModel() {
ScanAddOnModel scanAddOnModel = new ScanAddOnModel(this);
IErrorStrategy errorStategyImpl = getErrorStrategy();
if (errorStategyImpl != null) {
scanAddOnModel.setErrorStrategy(errorStategyImpl.toModel());
}
IDisplay displayImpl = getDisplay();
if (errorStategyImpl != null) {
scanAddOnModel.setDisplay(displayImpl.toModel());
}
IPostScanBehaviour scanBehaviourImpl = getPostScanBehaviour();
if (scanBehaviourImpl != null) {
scanAddOnModel.setPostScanBehaviour(scanBehaviourImpl.toModel());
}
List<IHook> hookListImpl = getHooks();
if (hookListImpl != null) {
List<IHook> hookListModel = new ArrayList<IHook>();
for (IHook hookImpl : hookListImpl) {
hookListModel.add(hookImpl.toModel());
}
scanAddOnModel.setHooks(hookListModel);
}
return scanAddOnModel;
}