A misreading of China’s retail market in 2008 led to a dramatic rethink of strategy