Note that NumberInt is not supported by the MongoDB Java driver so it won't work.
However the other supported BSON functions should now work.