 YOI's are managed by the Prison Service.The term of detention is up to the maximum allowed for adult imprisonment for the relevant offence, and the same custody threshold ("so serious") applies as in the case of the adult court.The minimum period of detention is 21 days.