public static List<Step> getStepsToCopy() {
List<Step> result = new ArrayList<Step>();
for (Iterator<Step> iterator = stepsToCopy.iterator(); iterator.hasNext();) {
Step step = (Step) iterator.next();
try {
result.add((Step) step.clone());
} catch (Exception e) {
// Bug 18567
LoggerFactory.getLogger("BatchViewerControler").error("Cannot Copy selected Step");
}
}