An example of using the MongoDB java client.