public QueryDefinition getQuery(String name) throws Exception {

		QueryDefinition query = null;
		try {
			Node node = Utilities.selectSingleNode(this.doc, "/c:settings/c:queries/c:query[@c:name='" + name + "']", this.namespaces);
			if(node != null) {
				query = new QueryDefinition(node);
			}
		
		} catch (XPathExpressionException e) {
			logger.warn("Unable to read query: " + name);
		}

		return query;
	}