public void init(FilterConfig fConfig) throws ServletException {
		// TODO Auto-generated method stub
		try {

			//URL textURL = getClass().getResource("AccessList.xml"); 
			//InputStream is = textURL.openStream();
			DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
			DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
			Document doc = dBuilder.parse("AccessList.xml");


			//optional, but recommended
			//read this - http://stackoverflow.com/questions/13786607/normalization-in-dom-parsing-with-java-how-does-it-work
			doc.getDocumentElement().normalize();
			NodeList nList = doc.getElementsByTagName("page");
			for (int temp = 0; temp < nList.getLength(); temp++) {

				Node nNode = nList.item(temp);

				if (nNode.getNodeType() == Node.ELEMENT_NODE) {

					Element eElement = (Element) nNode;
					accessList.put(eElement.getElementsByTagName("url").item(0).getTextContent(),Integer.parseInt(eElement.getElementsByTagName("level").item(0).getTextContent()));
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}

	}