static CodecProvider of(CodecRegistry registry) {
    return new LegacyCodecAdapter(registry);
  }
To preserve compatibility returns {@code null} on {@linkplain CodecConfigurationException}
criteria/mongo/src/org/immutables/criteria/mongo/bson4jackson/LegacyCodecAdapter.java