Artifact artifact = repository.getLatestForName(artId.getName(), artId.getBranch());
Float artifactQuality = collabReview.getMeasurementsManager().getArtifactQualityAssessor().assessQuality(artId);
if (artifactQuality == null) {
continue;
}
float myResponsibilityScore = weight.measure(artifact) * collabReview.getMeasurementsManager().getArtifactResponsibility().assessResponsibility(artifact, user);
if (myResponsibilityScore != 0) {
// DocumentLength * Participation * QualityRating
float myQualityScore = myResponsibilityScore * artifactQuality;
// checks if the current document score is worse than one of the five worst scores
// if yes: score and document will be added to the according tables for worst rated documents