The man was accused of killing 17 people in a cold blooded act of terrorism. He had a trial. He had legal representation. He was allowed to call witnesses. He was allowed to cross examine witnesses against him. The court of law found him guilty.
Are you talking about the Islamic countries that MAKE the village folk come out and witness the punishment, whether it is cutting off the hand of a thief, caning, lashing, beheading, or stoning?