class MetaDataClientRest extends DefaultClient implements MetaDataClient {

    @Override
    public JsonNode selectObjectGrouptbyId(JsonNode selectQuery, String objectGroupId)
        throws MetaDataExecutionException, MetaDataNotFoundException, MetaDataDocumentSizeException,
        InvalidParseOperationException, MetaDataClientServerException {
        if (Strings.isNullOrEmpty(objectGroupId)) {
            throw new InvalidParseOperationException("objectGroupId may not be empty");
        }
        try (Response response = make(get().withPath("/objectgroups/" + objectGroupId)
            .withBody(selectQuery, SELECT_OBJECT_GROUP_QUERY_NULL.getMessage()).withJson())) {
            check(response);
            return response.readEntity(JsonNode.class);
        } catch (IllegalArgumentException e) {
            throw new InvalidParseOperationException(e);
        } catch (VitamClientInternalException e) {
            throw new MetaDataClientServerException(e);
        }
    }

    public  MetaDataClientRest(VitamClientFactoryInterface factory);

}