class ResponseFolderCompressorService implements ApplicationEventPublisherAware {

    public String compressResponseFolder(Long requestId)
            throws AcmUserActionFailedException, AcmObjectNotFoundException, AcmFolderException
    {
        CaseFile request = caseFileDao.find(requestId);
        String compressFileName = "";

        if(getAcmFolderService().getFolderChildren(getResponseFolderService().getResponseFolder(request).getId()).size() <= 0)
        {
            return compressFileName;
        }

        compressFileName = compressor.compressFolder(getResponseFolderService().getResponseFolder(request).getId());
        publishResponseFolderCompressedEvent(request);
        return compressFileName;
    }

}