Mapper<IN> sqMapper = db.getMapper(sqr.getSubQueryFromClass().getName());
Predicate where = _createWhere(db, sqMapper, em, sqFrom, cq, cb, new int[2], joinHash,
(QueryRule[]) sqr.getValue());
sq.select(sqFrom.get(sqr.getSubQueryAttributeJpa())).where(where);
// the operator of subquery should be handled in
// the right way such that no code duplication
// should occure
// for the moment only in will work (more to