It usually depends on the crime what happens to the inmate. If they hurt elderly, babies, pets and more, they usually get some pretty nasty stuff done to them. Teaches them a lesson, maybe think they might not want to be in prison again. The people who commit that kind of crime usually deserve what they get.
Maybe its a bit tough on that kid, as he didn't actually commit the crime, but he didn't use his brain, and maybe this will wake him up.