class MetaDataClientRest extends DefaultClient implements MetaDataClient {

    @Override
    public JsonNode insertObjectGroup(JsonNode insertQuery)
        throws InvalidParseOperationException, MetaDataExecutionException, MetaDataNotFoundException,
        MetaDataDocumentSizeException, MetaDataClientServerException {
        try (Response response = make(post().withJson().withPath("/objectgroups")
            .withBody(insertQuery, "Insert Request is a mandatory parameter"))) {
            check(response);
            return response.readEntity(JsonNode.class);
        } catch (VitamClientInternalException e) {
            throw new MetaDataClientServerException(e);
        }
    }

    public  MetaDataClientRest(VitamClientFactoryInterface factory);

}