{
SubqueryImpl sub = subqueryIter.next();
org.datanucleus.query.expression.Expression subExpr = sub.getQueryExpression();
if (subExpr instanceof SubqueryExpression)
{
SubqueryExpression subqueryExpr = (SubqueryExpression) sub.getQueryExpression();
VariableExpression subqueryVar = (VariableExpression) subqueryExpr.getRight();
CriteriaQueryImpl<T> subDelegate = (CriteriaQueryImpl<T>) sub.getDelegate();
QueryCompilation subCompilation = subDelegate.getCompilation(mmgr, clr, compilation.getSymbolTable());
subCompilation.setQueryLanguage("JPQL");
compilation.addSubqueryCompilation(subqueryVar.getId(), subCompilation);
}