java handle for mongo