currentSelection = wizardElement.adaptedSelection(currentSelection);
if (selection instanceof IStructuredSelection) { selectionToPass = wizardElement .adaptedSelection((IStructuredSelection) selection); } else {
currentSelection = wizardElement.adaptedSelection(currentSelection);
if (selection instanceof IStructuredSelection) { selectionToPass = wizardElement .adaptedSelection((IStructuredSelection) selection); } else {