Initial implementation of MongoPersistWriter