private void fillSpreadSheetFilters(DegreeByExecutionYearBean degreeSearchBean, DocumentRequestSearchBean requestSearchBean,
final StyledExcelSpreadsheet spreadsheet) {
AcademicServiceRequestType requestType = requestSearchBean.getAcademicServiceRequestType();
DocumentRequestType documentType = requestSearchBean.getChosenDocumentRequestType();
AcademicServiceRequestSituationType situationType = requestSearchBean.getAcademicServiceRequestSituationType();
spreadsheet.newHeaderRow();
if (requestType != null) {
spreadsheet.addHeader(getResourceMessage("label.type") + ": " + requestType.getLocalizedName());
}
if (documentType != null) {
spreadsheet
.addHeader(getResourceMessage("label.documentRequestsManagement.searchDocumentRequests.documentRequestType")
+ ": " + documentType.getQualifiedName());
}
spreadsheet.newHeaderRow();
if (situationType != null) {
spreadsheet.addHeader(getResourceMessage("label.state") + ": " + situationType.getLocalizedName());
}
spreadsheet.newHeaderRow();
if (requestSearchBean.isUrgentRequest()) {
spreadsheet.addHeader(getResourceMessage("label.urgent.plural"));
}