addInstitutionParameters();
addPersonParameters();
final UniversityUnit university = getUniversity(getDocumentRequest().getRequestDate());
String universityName = university.getPartyName().getPreferedContent();
PhdDiplomaRequest diplomaRequest = getDocumentRequest();
String phdProgramConclusion =
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.phd.diploma.pdhProgramConclusion");
ExecutionYear conclusionYear = ExecutionYear.readByDateTime(diplomaRequest.getConclusionDate());
String phdProgramDescription =
getDocumentRequest().getPhdIndividualProgramProcess().getPhdProgram().getDegree().getNameI18N(conclusionYear)
.getContent(getLanguage());
String phdConclusionDate = BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.phd.diploma.pdhConclusionDate");
addParameter("conclusionMessage", phdProgramConclusion);
addParameter("phdProgram", phdProgramDescription);
addParameter(
"conclusionDate",
MessageFormat.format(phdConclusionDate, diplomaRequest.getConclusionDate()
.toString(getDatePattern(), getLocale()).toLowerCase()));
addParameter("documentNumber", BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.diploma.documentNumber"));
addParameter("registryCode", diplomaRequest.hasRegistryCode() ? diplomaRequest.getRegistryCode().getCode() : null);
addParameter("institutionName", Bennu.getInstance().getInstitutionUnit().getName());
addParameter("day", MessageFormat.format(
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.diploma.university.actualDate"), universityName,
getFormatedCurrentDate()));
addParameter("classificationResult", MessageFormat.format(BundleUtil.getString(Bundle.ACADEMIC, getLocale(),
"label.phd.Diploma.classificationResult"), diplomaRequest.getThesisFinalGrade().getLocalizedName(getLocale())));
addParameter("dissertationTitle", diplomaRequest.getDissertationThesisTitle());
addParameter("graduateTitle", diplomaRequest.getGraduateTitle(getLocale()));
if (getUniversity(getDocumentRequest().getRequestDate()) != getUniversity(getDocumentRequest().getConclusionDate()
.toDateTimeAtCurrentTime())) {
addParameter("UTLDescription", BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.diploma.UTLDescription"));
addParameter("certification",