if (expr instanceof Literal)
{
// EXISTS (SELECT 1 FROM COLLECTION_TBL WHERE ...)
QueryExpression qexpr = getBackingStoreQueryable().getExistsSubquery(qs, mapping, te, existsTableAlias);
ScalarExpression joinExpr = getBackingStoreQueryable().joinElementsTo(qexpr, qs, mapping, te,
existsTableAlias, clr.classForName(expr.getMapping().getType()), expr, elementTableAlias, true);
// TODO This sometimes adds TBL1.COL1 = TBL1.COL1 - check that the equals() removes such things
if (!expr.equals(joinExpr))
{
// Join to literal value (?)