final IScan scan = scanner.createScan();
final Collection<IIdentity> identities = Activator.getDefault().getModel().getCurrentWorkspace().getIdentityModel().getAllIdentities();
NewScanWizard wizard = new NewScanWizard(target, identities, scan.getModuleList(), scan.getConfig().getDefaultExcludedParameterNames());
WizardDialog dialog = new NewWizardDialog(shell, wizard);
if(dialog.open() == IDialogConstants.OK_ID) {
return maybeLaunchScanFromWizard(shell, wizard, scanner, scan);
} else {
// REVISIT: delete the scan so the ID can be used in the future?
scan.stopScan(); // stop to unlock workspace
}