QueryExpression subqueryExpr = (QueryExpression)subCompiler.compile(QueryCompiler.COMPILE_EXECUTION);
// Make sure the result clause is added - this should be refactored into the Compiler from newROF()
subCompiler.getCandidates().newResultObjectFactory(subqueryExpr, false, subCompiler.getResultClass(), true);
ScalarExpression expr = new SubqueryExpression(qs, subqueryExpr);
// Mark all subquery processed parameters as processed for this query too
Set subProcessedParams = subCompiler.processedParameters;
if (subProcessedParams != null)
{