void () { if (isLastStep()) { // Commit data of current step and perform OK action Step currentStep = mySteps.get(myCurrentStep); LOG.assertTrue(currentStep != null); try { currentStep._commit(true); doOKAction(); } catch (CommitStepException exc) { String message = exc.getMessage(); Messages.showErrorDialog(myContentPanel, message); } } else { doNextAction(); } }