A generic wrapper for mongodb's java driver