This reminds me a phrase from the Israeli writer Amos Oz:
"For centuries, both jews and palestinians suffered from European oppression. When they achieve liberation and comes the time for them to live in peace, they can't escape behaving to each other like the Europeans did to them. The mind of the oppressed is quite often a mirror of the opressor's mind".
I believe that every hate and prejudice is learned from the experience of oppression. And it is learned both by the oppressor and oppressed. It takes a long walk under democracy to unlearn it.