class FileAssetService implements AssetService {

    @Override
    public String saveHttpLogs(String html) {
        try {
            // fileHomeFolder is something like /opt/assets
            // subFolder is something like /http-logs
            // The full path of the folder is then something like /opt/assets/http-logs
            final String subFolder = araConfiguration.getFileHttpLogsSubFolder();
            final String absoluteFolderPath = araConfiguration.getFileHomeFolder() + subFolder;
            final String fileName = fileNameService.generateReportFileName("http-log", "html");
            final File file = new File(absoluteFolderPath + File.separator + fileName);

            // Will create directories if they do not exist
            FileUtils.write(file, html, StandardCharsets.UTF_8);

            return araConfiguration.getFileHttpAccess() + subFolder + "/" + fileName;
        } catch (IOException e) {
            log.error("HTTP log saving failed: {}", e.getMessage(), e);
            return null;
        }
    }

}