Their main purpose is the rehabilitation of the young offender.
The treatment of a young offender depended on a judgement as to his or her maturity.