&& entry.getValue().asDocument(). containsKey("$type")) { if (new BsonString("date").equals( entry.getValue().asDocument().get("$type"))) { ret.put(entry.getKey(), new BsonDateTime(currentTimeMillis)); } else if (new BsonString("timestamp").equals( entry.getValue().asDocument().get("$type"))) { ret.put(entry.getKey(),