He started the day in court as a witness for a former high-profile client but ended it behind bars.