SA is also seen as the economic hub of Southern Africa (because it is) which means that lots of foreigners make the move seeking a better life.The only response is economics. As long as there is insufficient jobs in SA for the growing under-skilled, younger job seekers then you will continue to see the problems in SA; including this continuous violence and anger. Because when some people feel they have nothing to lose they will behave have as if they have nothing to lose. And as always politicians will give them anybody else to blame but the politicians themselves. Pretty much the same as everywhere just countries like SA struggle to cope with all our already numerous problems.
It's kind of like an extreme version of the US/Mexico situation.