String queryString = request.getParameter("queryString");
//System.out.println(">> DEBUG: Got query from user: " + queryName + " => " + queryString);
if (queryName != null && queryString != null && queryName.length() > 0 && queryString.length() > 0) {
Query query = QueryFactory.factory(queryName, queryString);
if (query != null) {
queryResponse = query.execute(request, databaseSession);
} else {
queryResponse = new Response(ResponseStatus.FAIL, "Unknown query requested");
}
} else {