bson/src/main/org/bson/codecs/EncoderContext.java
public <T> void encodeWithChildContext(final Encoder<T> encoder, final BsonWriter writer, final T value) {
        encoder.encode(writer, value, DEFAULT_CONTEXT);
    }
public <T> void encodeWithChildContext(final Encoder<T> encoder, final BsonWriter writer, final T value) {
        encoder.encode(writer, value, DEFAULT_CONTEXT);
    }
Creates a child context based on this and serializes the value with it to the writer.

@param encoder the encoder to encode value with
@param writer the writer to encode to
@param value the value to encode
@param <T> the type of the value