Sir my cousine has been charged with 394 & 411 of ipc. He was in cusstody since March-2015. recently he has engaged advocate who has filled his vakalatnama on last date. That on this date the advocate could not be able to come for some practical reason and on that day my cousin has plead guilty before the judge. That judge has given him time to think over it till 4 p.m and lastly convicted him for three year. now my question is that he was under impression that the judge may release him as he was already in custody since long. secondly thare was no need for the judge to be in so hurry as he was already in custody he could have waited for the advocate to come and lastly even though the time has been given how a undertrial person surrounded by police can think till 4 p.m. now sir what to do in this case ? appeal, 482, writ ? please guide me.