Magistrate hands the opposition figure five-year term, that his lawyers say will be appealed.