if (requirement.equals(lva.getLvaGroup())) {
List<Rating> lvaRatings = ratings == null ? null : ratings.get(lva);
boolean fullfilled = false;
if (lvaRatings == null || lvaRatings.isEmpty()) {
throw new RequirementsNotFullfilledException();
}
for (Rating r : lvaRatings) {
if (r.getGrade() != Grade.E) {
fullfilled = true;
break;
}
}
if (!fullfilled) {
throw new RequirementsNotFullfilledException();
}
}
}
}