Mongodb Rest Api Java Example