}
@Override
protected void fillReport() {
super.fillReport();
final DiplomaRequest diplomaRequest = getDocumentRequest();
String universityName = getUniversity(diplomaRequest.getRequestDate()).getPartyName().getPreferedContent();
addParameter("registryCode", diplomaRequest.hasRegistryCode() ? diplomaRequest.getRegistryCode().getCode() : null);
addParameter("documentNumber", BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.diploma.documentNumber"));
addParameter("conclusionDate", diplomaRequest.getConclusionDate().toString(getDatePattern(), getLocale()));
addParameter("day", MessageFormat.format(
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.diploma.university.actualDate"), universityName,
getFormatedCurrentDate()));
if (diplomaRequest.hasFinalAverageDescription()) {
addParameter("finalAverageDescription", StringUtils.capitalize(BundleUtil.getString(Bundle.ENUMERATION, getLocale(),
diplomaRequest.getFinalAverage().toString())));
addParameter("finalAverageQualified", diplomaRequest.getFinalAverageQualified());
} else if (diplomaRequest.hasDissertationTitle()) {
addParameter("dissertationTitle", diplomaRequest.getDissertationThesisTitle());
}
String finalAverage = BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "diploma.finalAverage");
addParameter("finalAverageDescription", MessageFormat.format(finalAverage,
BundleUtil.getString(Bundle.ENUMERATION, getLocale(), diplomaRequest.getFinalAverage().toString()),
diplomaRequest.getFinalAverage().toString(),
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), getQualifiedAverageGrade(getLocale()))));
addParameter("conclusionStatus", MessageFormat.format(
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.diploma.conclusionStatus"),
getConclusionStatusAndDegreeType(diplomaRequest, getRegistration())));
addParameter("degreeFilteredName", diplomaRequest.getDegreeFilteredName());
String graduateTitle = diplomaRequest.getGraduateTitle(getLocale());
if (graduateTitle.contains("Graduated")) {
graduateTitle = graduateTitle.replace("Graduated", "Licenciado");
}