// Optimize the queryTree
qec.query = optimize(qec.query, debug);
// Creates an evaluator associated to the QueryTree
qec.evaluator = new SelectEvaluator(qec.query, 0);
qecs = new JDOQueryEvalContext[] {qec};
timeToCompile = System.currentTimeMillis() - timeToCompile;
status = COMPILED;
logger.log(BasicLevel.INFO, "Query compiled in " + timeToCompile + "ms");