class PurgeReportService {

    public void exportAccessionRegisters(String processId) throws ProcessingStatusException {

        try (BatchReportClient batchReportClient = batchReportClientFactory.getClient()) {

            batchReportClient.generatePurgeAccessionRegisterReport(
                processId,
                new ReportExportRequest(ACCESSION_REGISTER_REPORT_JSONL));

        } catch (VitamClientInternalException e) {
            throw new ProcessingStatusException(StatusCode.FATAL,
                "Could not generate purge accession register reports (" + processId + ")", e);
        }
    }

    public  PurgeReportService();
    @VisibleForTesting  PurgeReportService(
        BatchReportClientFactory batchReportClientFactory,
        WorkspaceClientFactory workspaceClientFactory);

}