class PurgeAccessionRegisterPreparationHandler extends ActionHandler {

    @Override
    public ItemStatus execute(WorkerParameters param, HandlerIO handler)
        throws ProcessingException {

        try {

            exportAccessionRegister(param.getContainerName());

            LOGGER.info("Purge accession register preparation succeeded");
            return buildItemStatus(actionId, StatusCode.OK, null);

        } catch (ProcessingStatusException e) {
            LOGGER.error(
                String.format("Purge accession register preparation failed with status [%s]", e.getStatusCode()), e);
            return buildItemStatus(actionId, e.getStatusCode(), e.getEventDetails());
        }
    }

    public  PurgeAccessionRegisterPreparationHandler(String actionId);
    @VisibleForTesting protected  PurgeAccessionRegisterPreparationHandler(
        String actionId, PurgeReportService purgeReportService);

}