class ResponseFolderNotifyService {

    public void sendEmailResponseCompressNotification(Long requestId)
    {
        FOIARequest request = (FOIARequest) caseFileDao.find(requestId);
        String emailAddress = extractRequestorEmailAddress(request.getOriginator().getPerson());
        if (emailAddress != null)
        {
            Notification responseFolderNotifier = new Notification();
            responseFolderNotifier.setEmailAddresses(emailAddress);
            responseFolderNotifier.setTitle(String.format("%s %s", EMAIL_RESPONSE_FOLDER_ZIP, request.getCaseNumber()));
            responseFolderNotifier.setTemplateModelName("portalDocumentsLink");
            responseFolderNotifier.setParentType(request.getObjectType());
            responseFolderNotifier.setParentId(request.getId());
            responseFolderNotifier.setAttachFiles(false);
            notificationDao.save(responseFolderNotifier);
        }
    }

}