It's done in a military court of a far-right theocratic government that doesn't believe in a Democracy, and is in fact attacking other Democracies like Lebanon and Iran. They don't even bother having fair trials. So it's basically kidnap Palestinian children as hostages, then kill them.