}
@Override
protected void fillReport() {
super.fillReport();
IRegistryDiplomaRequest request = getDocumentRequest();
Person person = request.getPerson();
setHeader();
addParameter("institution", getInstitutionName());
addParameter("university", getUniversity(getDocumentRequest().getConclusionDate().toDateTimeAtCurrentTime())
.getPartyName().getContent(Locale.getDefault()));
setFirstParagraph(request);
setSecondParagraph(person, request);
String thirdParagraph = BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.phd.registryDiploma.thirdParagraph");
String dateWord[] = getDateByWords(request.getConclusionDate());
addParameter("thirdParagraph", MessageFormat.format(thirdParagraph, dateWord[0], dateWord[1], dateWord[2]));
addParameter("by", BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.by.university"));
if (getDocumentRequest().isRequestForRegistration()) {
setFifthParagraph();
}
addParameter("studentName", person.getValidatedName());
String graduateTitle = request.getGraduateTitle(getLocale());
if (graduateTitle.contains("Graduated")) {
graduateTitle = graduateTitle.replace("Graduated", "Licenciado");
}