class MetaDataClientRest extends DefaultClient implements MetaDataClient {

    @Override
    public JsonNode selectObjectGroups(JsonNode selectQuery)
        throws MetaDataExecutionException, MetaDataDocumentSizeException, InvalidParseOperationException,
        MetaDataClientServerException {
        try (Response response = make(
            get().withPath("/objectgroups").withBody(selectQuery, SELECT_OBJECT_GROUP_QUERY_NULL.getMessage())
                .withJson())) {
            check(response);
            return response.readEntity(JsonNode.class);
        } catch (MetaDataNotFoundException | VitamClientInternalException e) {
            throw new MetaDataClientServerException(e);
        }
    }

    public  MetaDataClientRest(VitamClientFactoryInterface factory);

}