class VitamMongoRepository implements VitamRepository {

    @Override
    public void save(Document document) throws DatabaseException {
        ParametersChecker.checkParameter(ALL_PARAMS_REQUIRED, collection, document);
        try {
            collection.insertOne(document);
        } catch (Exception e) {
            LOGGER.error("Insert Document Exception: ", e);
            throw new DatabaseException(e);
        }
    }

    public  VitamMongoRepository(MongoCollection<Document> collection);

}