Use non-deprecated CodecFactory.getCodec(ResourceLocator) where easily possible