DefaultMutableTreeNode newNode = addSocietyToWorkspace(sc, node);
DefaultMutableTreeNode newNode = addSocietyToWorkspace(sc, getSelectedNode());
  private DefaultMutableTreeNode newSociety(DefaultMutableTreeNode node) {    Object answer =      JOptionPane.showInputDialog(this, "Select Society Type",				  "Select Society",				  JOptionPane.QUESTION_MESSAGE,				  null,				  socComboItems,				  "ScalabilityX");    if (answer == null)      return null;    SocietyComponent sc = null;    if (answer instanceof ComboItem) {      // create a scalability or abc society      ComboItem item = (ComboItem) answer;      String name = societyNames.generateName(item.name);      while (true) {	name = (String) JOptionPane.showInputDialog(this, "Enter Society Name",						    "Name Society",						    JOptionPane.QUESTION_MESSAGE,						    null, null,						    name);	if (name == null) return null;	if (!societyNames.contains(name)) break;	int ok = JOptionPane.showConfirmDialog(this,					       "Use an unique name",					       "Society Name Not Unique",					       JOptionPane.OK_CANCEL_OPTION,					       JOptionPane.ERROR_MESSAGE);	if (ok != JOptionPane.OK_OPTION) return null;      }      sc = createSoc(name, item.cls);    }    if (sc == null)      return null;    DefaultMutableTreeNode newNode = addSocietyToWorkspace(sc, node);    workspace.setSelection(newNode);    return newNode;  }