class AssetRenditionsZipperImpl implements AssetRenditionsDownloadOrchestrator {

    protected String getFileName(final ValueMap properties) {
        String fileName = properties.get(PN_FILE_NAME, StringUtils.defaultString(cfg.file_name(), DEFAULT_FILE_ATTACHMENT_NAME));

        if (!StringUtils.endsWith(fileName, ZIP_EXTENSION)) {
            fileName += ZIP_EXTENSION;
        }
        return fileName;
    }

}