The fact that nationalism is on the rise in some parts of the world seems to be indicating the ubiquity of growing global interdependence. It is only a long overdue recognition of the self, mirrored in the mind of others. When in isolation, people do not have the way of thoughts leading to nationalism. Nationalism is a luxury made possible by globalization.
That is why patriotism is the last refuge of a scoundrel (Samuel Johnson), as luxury is always the last refuge of a scoundrel.