(a) The primary purpose of the Division of Corrections and Rehabilitation is to enhance public safety by providing for the detention of juvenile offenders, both pretrial and adjudicated, pretrial detention of adult persons facing criminal charges, and incarceration and care of adult convicted offenders who have been sentenced by courts of proper jurisdiction to serve terms of incarceration.
(b) It is the intent of the Legislature:
(1) That juveniles and adult offenders be afforded appropriate education and treatment to reestablish their ability to live peaceably, consistent with the protection of the community;