MongoDB Java driver 2.8 fixes the localhost issue