code: public <T> void encodeWithChildContext(final Encoder<T> encoder, final BsonWriter writer, final T value) {
          encoder.encode(writer, value, DEFAULT_CONTEXT);
      }
docs: 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