@Override
    public UUID deserialize(JsonParser parser, DeserializationContext ctxt) throws IOException, JsonProcessingException {
      final BsonReader reader = ((BsonParser) parser).unwrap();
      return codec.decode(reader, DecoderContext.builder().build());
    }
Custom deserializer for UUID (stored as {@link BsonType#BINARY})
mongo/test/org/immutables/mongo/fixture/JacksonRepoTest.java