code: public final BsonFactory configure(BsonGenerator.Feature f, boolean state) {
      	if (state) {
      		return enable(f);
      	}
      	return disable(f);
      }
docs: Method for enabling/disabling specified generator features
  (check {@link BsonGenerator.Feature} for list of features)
  @param f the feature to enable or disable
  @param state true if the feature should be enabled, false otherwise
  @return this BsonFactory