} catch (ParserConfigurationException e1) { MessageDialog.openError(getShell(), "ERROR", e1.getMessage()); } catch (SAXException e) { MessageDialog.openError(getShell(), "ERROR", e.getMessage()); } catch (IOException e) { MessageDialog.openError(getShell(), "ERROR", e.getMessage());
}  tableItem.setText(nameValuePair); this.fParametersTable.setSelection(new TableItem[] { tableItem});
    protected void displaySocietyXMLParameters(File societyXMLFile,            String nodeName) {        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();        DocumentBuilder db;        List paramList = null;        try {            db = dbf.newDocumentBuilder();            Document doc = db.parse(societyXMLFile);            NodeList list = doc.getChildNodes();            for (int i = 0; i < list.getLength(); i++) {                Node node = list.item(i);                if (node.getNodeName().equalsIgnoreCase("society")) {                    NodeList nodeList = node.getChildNodes();                    paramList = getNodeVMParams(nodeList, nodeName);                }            }        } catch (ParserConfigurationException e1) {            MessageDialog.openError(getShell(), "ERROR", e1.getMessage());        } catch (SAXException e) {            MessageDialog.openError(getShell(), "ERROR", e.getMessage());        } catch (IOException e) {            MessageDialog.openError(getShell(), "ERROR", e.getMessage());        }        ILaunchConfiguration config = getLaunchConfiguration();        ILaunchConfigurationWorkingCopy wc = null;        try {            if (config.isWorkingCopy()) {                wc = (ILaunchConfigurationWorkingCopy) config;            } else {                wc = config.getWorkingCopy();            }        } catch (CoreException e) {            JDIDebugUIPlugin.log(e);        }        IJavaProject javaProject = getJavaProject(wc);        IProject project = null;        String defaultVersion = "";        if (javaProject != null) {            project = javaProject.getProject();            defaultVersion = CougaarPlugin.getCougaarPreference(project                    .getProject(), ICougaarConstants.COUGAAR_VERSION);        }        HashMap map = new HashMap();        if (paramList != null) {            Iterator iter = paramList.iterator();            while (iter.hasNext()) {                String value = (String) iter.next();                String[] nameValuePair = new String[2];                nameValuePair = value.split("=");                if (nameValuePair.length < 2) {                    String tmp = nameValuePair[0];                    nameValuePair = new String[] {tmp, tmp};                }                if ((defaultVersion != null) && !defaultVersion.equals("")) {                    String cip = "";                    cip = CougaarPlugin.getCougaarBaseLocation(defaultVersion);                                       if ((cip != null) && !cip.equals("")) {                                                nameValuePair[1] = replaceCIP(cip, nameValuePair[1]);                    }                    map.put(nameValuePair[0], nameValuePair[1]);                    TableItem tableItem = null;                    if (tableItem == null) {                        tableItem = getTableItemForName(nameValuePair[0]);                        if (tableItem == null) {                            tableItem = new TableItem(this.fParametersTable,                                    SWT.NONE);                        }                    }                    tableItem.setText(nameValuePair);                    this.fParametersTable                            .setSelection(new TableItem[] { tableItem});                }            }        }        setDirty(true);        performApply(wc);    }