code: public StitchObjectMapper withCodecRegistry(final CodecRegistry codecRegistry) {
      // We can't detect if their codecRegistry has any duplicate providers. There's also a chance
      // that putting ours first may prevent decoding of some of their classes if for example they
      // have their own way of decoding an Integer.
      final CodecRegistry newReg =
          CodecRegistries.fromRegistries(BsonUtils.DEFAULT_CODEC_REGISTRY, codecRegistry);
      return new StitchObjectMapper(this, newReg);
    }
docs: Applies the given codec registry to be used alongside the default codec registry.
  
  @param codecRegistry the codec registry to merge in.
  @return an {@link StitchObjectMapper} with the merged codec registries.