System.out.println(wsElem.getElementsByTagName("AllowLocalAuth").getLength());
    private HashMap getWebServices(Element wssElem, HashMap attributes,                                    HashMap profiles) {        log.finer("getWebServices(Element, HashMap, HashMap");        HashMap webServices = new HashMap();        NodeList wsElems = wssElem.getElementsByTagName("WebService");        /* All profiles */        for (int i = 0; i < wsElems.getLength(); i++) {             Element wsElem = (Element) wsElems.item(i);            /* Create a new WebService with id */            WebService ws = new WebService(wsElem.getAttribute("id"));            webServices.put(ws.getId(), ws);            /* Set WebService's parameters.*/            String name = wsElem.getElementsByTagName("Name").item(0).getFirstChild().getNodeValue();            String url = wsElem.getElementsByTagName("URL").item(0).getFirstChild().getNodeValue();			String defaultLang = ((Element)wsElem.getElementsByTagName("DefaultLang").item(0)).getAttribute("name");			String defaultOrg = ((Element)wsElem.getElementsByTagName("DefaultOrg").item(0)).getAttribute("name");			System.out.println(wsElem.getElementsByTagName("AllowLocalAuth").getLength());			boolean allowsLocalAuth = wsElem.getElementsByTagName("AllowLocalAuth").getLength() > 0;            ws.setName(name);            ws.setUrl(url);            ws.setDefaultLang(defaultLang);            ws.setDefaultOrg(defaultOrg);            ws.setAllowLocalAuth(allowsLocalAuth);                        /* Set WebService's affiliation. The organizations is ordered by a "order"-attribute. */            Element affiliationList = (Element) wsElem.getElementsByTagName("Affiliation").item(0);			NodeList organizations = affiliationList.getElementsByTagName("Organization");            Vector affiliations = new Vector();                        for (int j = 0; j < organizations.getLength(); j++) {				affiliations.add(((Element) organizations.item(j)).getAttribute("name"));            }            ws.setAffiliations((String[]) affiliations.toArray(new String[affiliations.size()]));                                  /* Set WebService's attributes (allowed and denied) and             * profiles */            NodeList aaElems = wsElem.getElementsByTagName("AllowedAttributes");            NodeList daElems = wsElem.getElementsByTagName("DeniedAttributes");            NodeList profileElems = wsElem.getElementsByTagName("WSProfiles");                        if (aaElems.getLength() > 0)                 ws.setAllowedAttributes(getAttributes((Element) aaElems.item(0), attributes, true));            if (daElems.getLength() > 0)                 ws.setDeniedAttributes(getAttributes((Element) daElems.item(0), attributes, false));            if (profileElems.getLength() > 0)                 ws.setProfiles(getProfiles((Element) profileElems.item(0), profiles, false));        }        return webServices;    }