try {
IConfig<?> configImpl = AutoCopier.toImpl(config, IConfig.class);
IConfig<?> lastStartScanImpl = AutoCopier.toImpl(lastStartScan, IConfig.class);
ContextImpl context = new ContextImpl();
context.setScanServerName(ModelPreferences.getInstance().getScanServer());
context.setUserLogFile(ModelPreferences.getInstance().getUserLogFile());
context.setMaxLineNumber(ModelPreferences.getInstance().getMaxLineNumber());
try {
ScanApi.stopScan(configImpl, lastStartScanImpl, context);
}
catch (IOException ioe) {