class MetaDataClientRest extends DefaultClient implements MetaDataClient {

    @Override
    public RequestResponse<JsonNode> getObjectGroupByIdRaw(String objectGroupId) throws VitamClientException {
        Response response = null;
        try {
            response = make(get().withJson().withPath("/raw/objectgroups/" + objectGroupId));
            check(response);
            return RequestResponse.parseFromResponse(response, JsonNode.class);
        } catch (IllegalStateException | InvalidParseOperationException | MetaDataExecutionException | MetaDataDocumentSizeException | MetaDataClientServerException e) {
            throw new VitamClientException(e);
        } catch (MetaDataNotFoundException e) {
            return RequestResponse.parseFromResponse(response, JsonNode.class);
        } finally {
            if (response != null) {
                response.close();
            }
        }
    }

    public  MetaDataClientRest(VitamClientFactoryInterface factory);

}