Making immutable APIs on top of MongoDB Java API is a headache