class IngestCleanupDeleteUnitPlugin extends ActionHandler {

    @Override
    public List<ItemStatus> executeList(WorkerParameters param, HandlerIO handler) {

        try {
            return processUnits(param.getObjectMetadataList());
        } catch (ProcessingStatusException e) {
            LOGGER.error("Unit purge failed with status " + e.getStatusCode(), e);
            return singletonList(buildItemStatus(INGEST_CLEANUP_DELETE_UNIT, e.getStatusCode(), e.getEventDetails()));
        }
    }

    public  IngestCleanupDeleteUnitPlugin();
    @VisibleForTesting  IngestCleanupDeleteUnitPlugin(
        PurgeDeleteService purgeDeleteService);

}