Please file speedy trial first. If such situation occurs then I will explain.
WP should be filed in HC only. Sample WP is also there in my links. But this is only sample.
You need to modify as per your case.
If you don't file speedy trial then it will be a never ending case.
https://www.lawyersclubindia.com/forum/details.asp?mod_id=104564&offset=3#.VE_MJVeDVdg.