String name = sc.getSocietyName(); String newName = societyNames.generateName(name); if (!newName.equals(name)) sc.setName(newName);
  protected void addSociety(SocietyComponent sc) {    String name = sc.getSocietyName();    String newName = societyNames.generateName(name);    if (!newName.equals(name))      sc.setName(newName);    // add society as sibling of experiment    DefaultMutableTreeNode parentNode =       (DefaultMutableTreeNode)(getSelectedNode().getParent());    addSocietyToWorkspace(sc, parentNode);  }