@Override
  public <T> Codec<T> get(Class<T> clazz, CodecRegistry registry) {
    return LegacyCodecAdapter.of(this).get(clazz, registry);
  }
Tries to find native codec for BSON types (if supported). Avoid using jackson indirection if
reading / writing only BSON (eg. {@link org.bson.BsonDocument})
criteria/mongo/src/org/immutables/criteria/mongo/bson4jackson/NativeCodecRegistry.java