class PurgeReportService {

    private <T> void appendEntries(String processId, List<T> entries, ReportType reportType)
        throws ProcessingStatusException {

        try (BatchReportClient batchReportClient = batchReportClientFactory.getClient()) {
            ReportBody<T> reportBody = new ReportBody<>();
            reportBody.setProcessId(processId);
            reportBody.setReportType(reportType);
            reportBody.setEntries(entries);
            batchReportClient.appendReportEntries(reportBody);
        } catch (VitamClientInternalException e) {
            throw new ProcessingStatusException(StatusCode.FATAL, "Could not append entries into report", e);
        }
    }

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

}