class PreservationFinalizationPlugin extends ActionHandler {

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

        try {

            storeReportToWorkspace(param, handler);

            storeReportToOffers(param.getContainerName());

            cleanupReport(param.getRequestId());

        } catch (Exception e) {

            LOGGER.error("Error on finalization", e);
            ObjectNode eventDetails = JsonHandler.createObjectNode();
            eventDetails.put("error", e.getMessage());
            return buildItemStatus(PLUGIN_NAME, FATAL, eventDetails);
        }

        return buildItemStatus(PLUGIN_NAME, OK, EventDetails.of("Finalization ok."));
    }

    public  PreservationFinalizationPlugin();
    @VisibleForTesting  PreservationFinalizationPlugin(PreservationReportService preservationReportService,
        LogbookOperationsClient logbookOperationsClient);

}