code: public static Document replaceDots(Document document) {
          return modifyKeys(document, key -> key.replace(".", TO_REPLACE_DOTS), ".");
      }
docs: Replace all the dots in the keys with {@link #TO_REPLACE_DOTS}.
  
  MongoDB is not able to store dots in key fields.
  
  @param document      Document to modify
  @return              Document modified