Update to @LargeTable optimisation for findByUriQuery - where no results are returned by the id query we must not use Restrictions.in (Restrictions.in produces an invalid query when supplied an empty collection, instead we specify a criteria that is always false to prevent any results coming back)