The occupation by hundreds of thousands of religious and nationalist extremists is being done for ideological reasons. When Israel had security problems emanating from Lebanon the military dealt with it, it did not necessitate the state supporting the movement of a large swathe of its citizenry into someone else' country. Why - because southern|Lebanon held no ideological attraction for the extremists. The security issue is not a reason for the occupation, it is simply used as a pretext by those who want Israel to occupy as much of the land as possible between the Med and Jordan for ideological reasons. If anything the occupation does in fact exacerbate the situation by providing the Palestinians with a reason for causus belli.
Israeli soldier collapses, dies from heatstroke during visit to Jerusalem's Old City (Haaretz)
from the article: Israel has worst rate of brain drain in West, study shows