adding other mongo java code