public static Document stringToXmlDocument(String document) throws Exception
	{
		try
		{
			InputStream ouputStream = new ByteArrayInputStream(document.getBytes("UTF-8"));

			DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
			DocumentBuilder db = dbf.newDocumentBuilder();
			Document doc = db.parse(ouputStream);

			doc.getDocumentElement().normalize();

			return doc;
		}
		catch (Exception e)
		{
			// TODO:throw exceptions
			throw new Exception("Error reading xml response. Response Body:" + document + e);
		}
	}