class MongoDbHelper {

    public static String bsonToString(Bson bson, boolean indent) {
        if (bson == null) {
            return "";
        }
        if (indent) {
            return bson.toBsonDocument(BsonDocument.class,
                MongoClient.getDefaultCodecRegistry()).toJson(jwsIndented);
        } else {
            return bson.toBsonDocument(BsonDocument.class,
                MongoClient.getDefaultCodecRegistry()).toJson(jws);
        }
    }

    private  MongoDbHelper();

}