protected function buildPageSelector()
    {
        $idsWhere = [];
        foreach ($this->ids as $id) {
            $idsWhere[] = sprintf("page.[jcr:uuid] = '%s'", $id);
        }

        return '(' . implode(' OR ', $idsWhere) . ')';
    }