Use a CodecRegistration class, not only Codec