@Override
    public T decode(BsonReader reader, DecoderContext decoderContext) {
      final IOContext ioContext = new IOContext(new BufferRecycler(), ContentReference.unknown(), false);
      final BsonParser parser = new BsonParser(ioContext, 0, (AbstractBsonReader) reader);
      try {
        return mapper.readValue(parser, getEncoderClass());
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
    }
Utility class to convert to / from {@link CodecRegistry} and {@link ObjectMapper}.

<p>Please note that Jackson support is currently experimental.
mongo/src/org/immutables/mongo/bson4jackson/JacksonCodecs.java