OccupationType occupationType = getType(occupation);
if (!types.contains(occupationType)) {
continue;
}
if (occupation instanceof WrittenEvaluationSpaceOccupation) {
WrittenEvaluationSpaceOccupation evalOccupation = (WrittenEvaluationSpaceOccupation) occupation;
for (WrittenEvaluation eval : evalOccupation.getWrittenEvaluationsSet()) {
final Interval durationInterval = eval.getDurationInterval();
if (searchInterval.overlaps(durationInterval)) {
String desc;
if (eval instanceof WrittenTest) {
desc =