this.entry = entry;
this.executionYear = entry.getExecutionYear().getYear();
this.name = getMLSTextContent(entry.getPresentationName());
DateTime processingDate = computeProcessingDateToLockECTSTableUse();
if (entry instanceof IEnrolment) {
IEnrolment enrolment = (IEnrolment) entry;
this.type = BundleUtil.getString(Bundle.ENUMERATION, getLocale(), enrolment.getEnrolmentTypeName());
this.duration =
BundleUtil.getString(Bundle.ACADEMIC, getLocale(),
enrolment.isAnual() ? "diploma.supplement.annual" : "diploma.supplement.semestral");
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 =