class IngestInternalResource extends ApplicationStatusResource {

    @Path("/operations/{id}")
    @DELETE
    @Produces(MediaType.APPLICATION_JSON)
    public Response cancelOperationProcessExecution(@PathParam("id") String id) {
        Status status;
        try (ProcessingManagementClient processManagementClient = processingManagementClientFactory.getClient()) {
            SanityChecker.checkParameter(id);
            RequestResponse<ItemStatus> response = processManagementClient.cancelOperationProcessExecution(id);
            return response.toResponse();

        } catch (Exception e) {
            LOGGER.error(e);
            status = Status.INTERNAL_SERVER_ERROR;
            return Response.status(status)
                .entity(getErrorEntity(status, e.getMessage()))
                .build();
        }
    }

    public  IngestInternalResource(IngestInternalConfiguration configuration);
    @VisibleForTesting  IngestInternalResource(WorkspaceClientFactory workspaceClientFactory,
        ProcessingManagementClientFactory processingManagementClientFactory,
        LogbookOperationsClientFactory logbookOperationsClientFactory);

}