title: Getting server used during FindAndModify
body: <p>We have started upgrading our Mongo Java drivers from 2.x to 3.x. One important piece of information that we log during all commands is the server used so that we can easily identify any performance issues.</p>
  
  <p>Previously, we could use getLastError to get some information about the server used (despite possibly being inaccurate).</p>
  
  <p>We don't really want to duplicate all the internal FindAndModify logic since it has a lot of built in functionality with regards to picking the correct modify command, building the complex query, etc. Is there any other way to get the server used after a FindAndModify command?</p>