judicial custody explained