class IngestInternalClientRest extends DefaultClient implements IngestInternalClient {

    @Override
    public Optional<WorkFlow> getWorkflowDetails(String workflowIdentifier) throws VitamClientException {
        Response response = null;
        try {
            response = make(get()
                .withPath(WORKFLOWS_URI + "/" + workflowIdentifier)
                .withJsonAccept()
            );
            check(response);
            return Optional.of(response.readEntity(WorkFlow.class));
        } catch (InvalidParseOperationException | NotAcceptableClientException | IngestInternalClientServerException | WorkspaceClientServerException e) {
            throw new VitamClientException("Internal Error Server : " + response.readEntity(String.class));
        } catch (IngestInternalClientNotFoundException e) {
            return Optional.empty();
        } finally {
            if (response != null) {
                response.close();
            }
        }
    }

      IngestInternalClientRest(IngestInternalClientFactory factory);

}