Hamas learns lessons from the Arab Spring