Can't we use here only the List<Integer> locationIds ?