enrolmentsInfo.append(StringUtils.multipleLineRightPad(LINE_LENGTH, enrolment.getName().getContent(LanguageUtils.getLanguage()).toUpperCase(), '-')).append("\n");
enrolmentsInfo.append(StringUtils.multipleLineRightPad( enrolment.getName().getContent(LanguageUtils.getLanguage()).toUpperCase(), LINE_LENGTH, '-')).append("\n");
    protected void fillReport() {	super.fillReport();		final EnrolmentCertificateRequest enrolmentCertificateRequest = (EnrolmentCertificateRequest) getDocumentRequest();	final ExecutionYear executionYear = enrolmentCertificateRequest.getExecutionYear();	final Integer curricularYear = Integer.valueOf(enrolmentCertificateRequest.getRegistration()		.getCurricularYear(executionYear));	parameters.put("curricularYear", curricularYear);	final List<Enrolment> enrolments = enrolmentCertificateRequest.getRegistration().getStudentCurricularPlan(executionYear).getEnrolmentsByExecutionYear(executionYear);	parameters.put("numberEnrolments", Integer.valueOf(enrolments.size()));		if (enrolmentCertificateRequest.getDetailed()) {	    StringBuilder enrolmentsInfo = new StringBuilder();	    	    enrolmentsInfo.append("\t\t").append(curricularYear).append(".ANO\n");	    final ComparatorChain comparatorChain = new ComparatorChain();	    comparatorChain.addComparator(new BeanComparator("executionPeriod.executionYear"));	    comparatorChain.addComparator(new BeanComparator("name"));	    Collections.sort(enrolments, comparatorChain);	    	    for (final Enrolment enrolment : enrolments) {		enrolmentsInfo.append(StringUtils.multipleLineRightPad(LINE_LENGTH, enrolment.getName().getContent(LanguageUtils.getLanguage()).toUpperCase(), '-')).append("\n");	    }	    	    parameters.put("enrolmentsInfo", enrolmentsInfo.toString());	} else {	    parameters.put("enrolmentsInfo", "");	}    }