private PersistenceSettings readPersistenceSettings() {
		if (persistenceSettings == null)
			persistenceSettings = new PersistenceSettings();
		try {
			Document doc = DocumentBuilderFactory.newInstance()
					.newDocumentBuilder()
					.parse(new FileInputStream(xmlFilePath));
			doc.getDocumentElement().normalize();
			NodeList nL = doc.getElementsByTagName("persistence");
			for (int i = 0; i < nL.getLength(); i++) {
				Node n = nL.item(i);
				if (n.getNodeType() == Node.ELEMENT_NODE) {
					Element elem = (Element) n;
					nL = elem.getElementsByTagName("type").item(0)
							.getChildNodes();
					n = (Node) nL.item(0);
					String type = n.getNodeValue();
					if (type.isEmpty()) {
						persistenceSettings.setPersistenceType("sqlite");
					}
					persistenceSettings.setPersistenceType(type);
				}
			}
		} catch (SAXException e) {
			e.printStackTrace();
			persistenceSettings.setPersistenceType("sqlite");
		} catch (IOException e) {
			e.printStackTrace();
			persistenceSettings.setPersistenceType("sqlite");
		} catch (ParserConfigurationException e) {
			e.printStackTrace();
			persistenceSettings.setPersistenceType("sqlite");
		}
		return persistenceSettings;

	}