private void loadPathwaysFromXMLNode(Node graphElement) {

        NodeList pathwaysnodes = graphElement.getChildNodes();
        for (int i = 0; i < pathwaysnodes.getLength(); i++) {
            Node pathwaynode = pathwaysnodes.item(i);
            // GraphData/Pathways/Pathway
            if (pathwaynode.getNodeName().equals("Pathway")) {
                NamedNodeMap pathwayAttributes = pathwaynode.getAttributes();
                String PathwayId = getNodeStringValue(pathwayAttributes.getNamedItem("ID"));
                String PathwayName = getNodeStringValue(pathwayAttributes.getNamedItem("Name"));
                String IsExpandedString = getNodeStringValue(pathwayAttributes.getNamedItem("Expanded"));
                boolean IsExpanded = Boolean.parseBoolean(IsExpandedString);
                String IsLinkingString = getNodeStringValue(pathwayAttributes.getNamedItem("Linking"));
                boolean IsLinking = Boolean.parseBoolean(IsLinkingString);

                repository.pathwayTable.insertRow(PathwayId, PathwayName, IsExpanded, IsLinking);

                NodeList pathwaychildren = pathwaynode.getChildNodes();

                // GraphData/Pathways/Pathway/...
                for (int j = 0; j < pathwaysnodes.getLength(); j++) {
                    Node pathwayContentNode = pathwaychildren.item(j);
                    if (pathwayContentNode != null && pathwayContentNode.getNodeName().equals("GenericProcesses")) {
                        loadPathwayToGenericProcessesTable(PathwayId, pathwayContentNode);
                    } else
                    if (pathwayContentNode != null && pathwayContentNode.getNodeName().equals("LinkingPathways")) {
                        loadPathwayToLinkingMoleculesTable(PathwayId, pathwayContentNode);
                    } else
                    if (pathwayContentNode != null && pathwayContentNode.getNodeName().equals("OrganismGroups")) {
                        loadPathwayToOrganismGroupsTable(PathwayId, pathwayContentNode);
                    }
                }
            }// GraphData/Pathways/Pathway
        }

    }