@Override
    public <T> Codec<T> get(Class<T> clazz, CodecRegistry registry) {
      try {
        return get(clazz);
      } catch (CodecConfigurationException e) {
        return null;
      }
    }
Manually reads and writes all attributes
mongo/test/org/immutables/mongo/fixture/BsonCodecRepoTest.java