Foreign direct investment ( FDI ) accounted for much of the growth until 2008 .