final Set<DocumentRequest> result = new HashSet<DocumentRequest>();
for (final AcademicServiceRequest academicServiceRequest : getAcademicServiceRequestsSet()) {
if (academicServiceRequest instanceof DocumentRequest) {
final DocumentRequest documentRequest = (DocumentRequest) academicServiceRequest;
if (documentRequest.getDocumentRequestType() == documentRequestType && documentRequest.finishedSuccessfully()
&& executionYear.containsDate(documentRequest.getCreationDate())
&& (!collectDocumentsMarkedAsFreeProcessed || documentRequest.isFreeProcessed())) {
result.add((DocumentRequest) academicServiceRequest);
}