Exactly. There are only two solutions. One: end the occupation. Two: however unfair to the individual soldier, all those involved in such incidents must be put on trial . Currently, either this does not happen, or the soldier is let off (perhaps with a caution). A real jail sentence might deter others.
Egypt says verdict in Al-Jazeera case expected Saturday (AP)
from the article: The real rules of engagement in the West Bank