Nationalism as a Factor in Legislation Restricting Foreign Investment