* @throws RecognitionException if eth DQl could not be parsed.
*/
static CommonTree parseDqlToAbstractSytntaxTree(String dql) throws RecognitionException {
ANTLRStringStream input = new ANTLRStringStream(dql);
DqlLexer lexer = new DqlLexer(input);
TokenStream tokens = new CommonTokenStream(lexer);
DqlParser parser = new DqlParser(tokens) {
@Override
public void emitErrorMessage(String msg) {
throw new DqlParseException(msg);