public boolean hasIdNodeName(Node serverNode, String name) {
        NodeList elements = serverNode.getChildNodes();
        boolean isNode = false;
        for (int i = 1; i < elements.getLength(); i++) {
            Node element = elements.item(i);
            if (element.getNodeName().equals("id") && element.getTextContent().equals(name)) {
                isNode = true;
                break;
            }
        }
        return isNode;
    }