public EditedStructure edit(ApplicationWindow appWin, Wizard wizard) {
WizardCallback callback = new WizardCallback();
WebServiceSelectionWizard wsWizard = startWizard(appWin, wizard, callback);
callback.waitUntilDone();
if (!Thread.currentThread().isInterrupted()) {
WebServiceCall newWs = wsWizard.getSelectedWebServiceCall();
if (newWs != null && !newWs.getID().equals(toEdit.getWebServiceCallId())) {
return new EditedStructureImpl(newWs);
}
}
return null;
}