Not able to override WriteConcern.Majority config in mongodb-driver-sync-4.7.0.jar

Please refer for code snippet