Witam mam pytanie i problem .... Nie wiem jak przeprocesować listę aby zwracała mi poprawny resulatat

Wygląda to tak :

    public List<Pair<String, Integer>> getExistingAssortmentToSendCs(List<Integer> ids) {
        PathBuilder<ContentEntity> contents = new PathBuilder<>(ContentEntity.class, "a");
        StringPath id = contents.getString("id");
        NumberPath<Integer> aid = contents.getNumber("assortmentId",Integer.class);
        NumberPath<Integer> status = contents.getNumber("status", Integer.class);
         new JPAQuery(em)
                .from(contents)
                .where((aid.in(ids)),
                status.eq(0).or(status.eq(1)))
                .list(id);

        List<Pair<String, Integer>> result = Lists.newArrayList();

        return result;


    }

Jak poprawnie przeprocesować wynik zapytania aby dodać go do listy par i żeby uzyskać poprawny rezultat?