public void printContent(PrintWriter itsWriter, String delimiter) { Collection steps = getstepsValue(); if (steps != null) { for (Iterator i = steps.iterator(); i.hasNext(); ) { Object step = i.next(); if (step instanceof Scenario) { ((Scenario) step).printContent(itsWriter, delimiter); } } itsWriter.println(); for (Iterator j = steps.iterator(); j.hasNext(); ) { Object step = j.next(); if (step instanceof Action_Choice) { ((Action_Choice) step).printContent(itsWriter, delimiter); } } } }