Maybe first add all projects to a Set to avoid duplicates and then put the result into the model?