Document versioning modules for Mongo Db with java

For document versioning for Mongo db with Java , is there any collection or feature similar to ‘historical Collection’ module which is available for Python like given in historical-collection · PyP ? Or similar to Mongoose versioned GitHub - pier4all/mongoose-versioned: Document versioning library for MongoDB using the mongoose package.
Looking for any modules or built in feature for version control of a document to be used for Java- Mongodb