}
    private void newImpact(DefaultMutableTreeNode node) {        Object[] values = {            new ComboItem("ABCImpact", ABCImpact.class),            new ComboItem("High Impact", HighImpact.class),            new ComboItem("Low Impact", LowImpact.class)        };        Object answer =            JOptionPane.showInputDialog(this, "Select Impact Type",                                        "Select Impact",                                        JOptionPane.QUESTION_MESSAGE,                                        null,                                        values,                                        "Low Impact");        if (answer instanceof ComboItem) {            ComboItem item = (ComboItem) answer;            String name = impactNames.generateName(item.name);	    // Special case code for ABC Impacts:	    File xmlfile = null; // to read in	    if (item.name.equals("ABCImpact")) {	      // Use a fileChooser to get the name of the file	      // if we had some other directory to start from,	      // we could pass in that parameter	      xmlfile = ABCImpact.getImpactFile(null, this);	      if (xmlfile == null)		return;	    }	    while (true) {	      name = (String) JOptionPane.showInputDialog(this, "Enter Impact Name",							  "Name Impact",							  JOptionPane.QUESTION_MESSAGE,							  null, null,							  name);	      if (name == null) return;	      if (!impactNames.contains(name)) break;	      int ok = JOptionPane.showConfirmDialog(this,						     "Use an unique name",						     "Impact Name Not Unique",						     JOptionPane.OK_CANCEL_OPTION,                                                       JOptionPane.ERROR_MESSAGE);	      if (ok != JOptionPane.OK_OPTION) return;	    }            try {                Constructor constructor = item.cls.getConstructor(constructorArgTypes);                ImpactComponent impact =                    (ImpactComponent) constructor.newInstance(new String[] {name});		DefaultMutableTreeNode newNode =		  addImpactToWorkspace(impact, node);		workspace.setSelection(newNode);		// If this is an ABCImpact, set the XML File as specified above		if (xmlfile != null && impact instanceof ABCImpact)		  ((ABCImpact)impact).setFile(xmlfile);            } catch (Exception e) {                e.printStackTrace();            }        }    }