private void loadPathCaseGraph() {
        boolean done = false;

        if (configuration == null) done = true;

        else if (service == null) {
            String WebServiceURL = (String) configuration.get("WebServiceUrl");
            if (WebServiceURL != null && !WebServiceURL.equals(""))
                connectToService(WebServiceURL);
            else {
                JOptionPane.showMessageDialog(this, "Applet PathCase Web Service Parameter is empty.", "Warning", JOptionPane.WARNING_MESSAGE);
                done = true;
            }
        }

        if (service == null) {
            String WebServiceURL = (String) configuration.get("WebServiceUrl");
            JOptionPane.showMessageDialog(this, "PathCase Web Service is not accessible. Please try in your browser the URL " + WebServiceURL, "Warning", JOptionPane.WARNING_MESSAGE);
            done = true;
        }

        if (!done) {
            try {
                String collapsedPathwayGuids = (String) configuration.get("collapsedPathwayGuids");
                String expandedPathwayGuids = (String) configuration.get("expandedPathwayGuids");
                String genericProcessGuids = (String) configuration.get("genericProcessGuids");
                String moleculeGuids = (String) configuration.get("moleculeGuids");

                String graphXML = service.getPathwaysServiceSoap().getGraphData(collapsedPathwayGuids, expandedPathwayGuids, genericProcessGuids, moleculeGuids,"","","","");
//                System.out.println("The length of the xml file:"+graphXML.length());

//                graphXML=readFile("c:\\new3.xml");

                PathCaseXMLParser parser = new PathCaseXMLParser(repository);

                parser.loadRepositoryFromGraphXML(graphXML);

                reloadFromRepository(false);

            }
            catch (Exception e) {
                JOptionPane.showMessageDialog(this, "Unknown exception:\n" + e, "Warning", JOptionPane.WARNING_MESSAGE);
            }
        }
    }