The same strategy that worked in Xinjiang would also be effective in Gaza: people must see a future of prosperity and security so that the extremists lose their appeal.
Seems I read somewhere that the Chinese are doing some pretty nasty things to the Uyghurs. Maybe you missed the story. One can take complimenting where others criticize a bit too far.