Liridon Kastrati was convicted of the attempted murder of Pc Gary Cowan following an incident in Paisley in 2024.