The Palestinian population has provided Hamas with what legitimacy it has as an elected entity. A population giveth, but it can also taketh away. There are certainly Gazans, perhaps even a majority of them, who are disillusioned with Hamas. Social services have faltered greatly and any sane Gazan recognizes that the bombs falling daily are the result of their government’s goading of Israel.
So the solution to the hostilities can be summed up in two words: Gazan Spring.