Can be implemented by codecs to be made aware of the registry
void
setCodecRegistry(org.bson.codecs.configuration.CodecRegistry codecRegistry)