class IngestInternalClientRest extends DefaultClient implements IngestInternalClient {

    @Override
    public ItemStatus getOperationProcessStatus(String id) throws VitamClientException {
        ParametersChecker.checkParameter(BLANK_OPERATION_ID, id);

        try (Response response = make(head()
            .withPath(OPERATION_URI + "/" + id)
            .withJsonAccept()
        )) {
            check(response);
            return new ItemStatus()
                .setGlobalState(ProcessState.valueOf(response.getHeaderString(GlobalDataRest.X_GLOBAL_EXECUTION_STATE)))
                .setLogbookTypeProcess(response.getHeaderString(GlobalDataRest.X_CONTEXT_ID))
                .increment(StatusCode.valueOf(response.getHeaderString(GlobalDataRest.X_GLOBAL_EXECUTION_STATUS)));

        } catch (InvalidParseOperationException | NotAcceptableClientException | WorkspaceClientServerException e) {
            throw new VitamClientException(e);
        } catch (VitamClientInternalException | IngestInternalClientNotFoundException | WorkflowNotFoundException | IngestInternalClientServerException e) {
            throw new VitamClientInternalException(e);
        }
    }

      IngestInternalClientRest(IngestInternalClientFactory factory);

}