return paramList;
} else if (node.getNodeName().equalsIgnoreCase("node")) { paramList.addAll(getNodeVMParams(node, nodeName)); }
    private List getNodeVMParams(NodeList nodeList, String nodeName) {        List paramList = new ArrayList();        for (int i = 0; i < nodeList.getLength(); i++) {            Node node = nodeList.item(i);            if (node.getNodeName().equalsIgnoreCase("host")) {                                NodeList nList = node.getChildNodes();                if (paramList == null) {                    paramList = getNodeVMParams(nList, nodeName);                 } else {                    List tmpList = getNodeVMParams(nList, nodeName);                     if (tmpList != null) {                        paramList.addAll(tmpList);                    }                }            } else if (node.getNodeName().equalsIgnoreCase("node")) {                NamedNodeMap nnMap = node.getAttributes();                Node nameNode = nnMap.getNamedItem("name");                if (nameNode.getNodeValue().equalsIgnoreCase(nodeName)) {                    NodeList pList = node.getChildNodes();                    for (int j = 0; j < pList.getLength(); j++) {                        Node param = pList.item(j);                        if (param.getNodeName()                                .equalsIgnoreCase("vm_parameter")) {                            String pValue = param.getNodeValue();                            if (pValue != null) {                                paramList.add(pValue.trim());                            } else {                                Node childNode = param.getFirstChild();                                paramList.add(childNode.getNodeValue().trim());                            }                        }                    }                }            }        }        return paramList;    }