private static Map<String, String> parse(String fileName)
	{
		DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
		DocumentBuilder builder = null;

		Map<String, String> map = new HashMap<String, String>();
		try
		{
			builder = builderFactory.newDocumentBuilder();
		}
		catch(ParserConfigurationException e)
		{
			// TODO: use logging engine instead
			e.printStackTrace();
			return null;
		}

		
		// Parsing the File
		try
		{
			Document doc = builder.parse(new FileInputStream(new File(fileName)));			
			NodeList properties = doc.getElementsByTagName("property");

			for(int i = 0; i < properties.getLength(); i++)
			{
				Node node = properties.item(i);
		
				String name = node.getAttributes().getNamedItem("name").getNodeValue()
								.trim().toLowerCase();
				String value = node.getTextContent().trim();

				map.put(name, value);
			}
		}
		catch(Exception e)
		{
			// TODO: use logging engine instead
			e.printStackTrace();
			return null;
		}


		return map;
	}