private final WriteConcern writeConcern;
public MongoDBConfiguration(Map<?, ?> configurationValues) {
super( configurationValues, DEFAULT_PORT );
ConfigurationPropertyReader propertyReader = new ConfigurationPropertyReader( configurationValues );
this.timeout = propertyReader.property( MongoDBProperties.TIMEOUT, int.class )
.withDefault( DEFAULT_TIMEOUT )
.withValidator( TIMEOUT_VALIDATOR )
.getValue();
this.associationDocumentStorage = propertyReader.property( MongoDBProperties.ASSOCIATION_DOCUMENT_STORAGE, AssociationDocumentType.class )
.withDefault( AssociationDocumentType.GLOBAL_COLLECTION )
.getValue();
this.writeConcern = this.buildWriteConcern( configurationValues );
}