this.ectsScale =
enrolment.getEctsGrade(getDocumentRequest().getRegistration().getLastStudentCurricularPlan(),
processingDate).getValue();
} else if (entry instanceof Dismissal && ((Dismissal) entry).getCredits().isEquivalence()) {
Dismissal dismissal = (Dismissal) entry;
this.type = BundleUtil.getString(Bundle.ENUMERATION, getLocale(), dismissal.getEnrolmentTypeName());
this.duration =
BundleUtil.getString(Bundle.ACADEMIC, getLocale(),
dismissal.isAnual() ? "diploma.supplement.annual" : "diploma.supplement.semestral");
this.ectsScale = dismissal.getEctsGrade(processingDate).getValue();
} else {
throw new Error("The roof is on fire");
}
this.ectsCreditsForCurriculum = entry.getEctsCreditsForCurriculum();
this.academicUnitId = obtainAcademicUnitIdentifier(academicUnitIdentifiers);