Encourages Member States to promote, inter alia, the use of alternative measures, such as diversion and restorative justice, to comply with the principle that deprivation of liberty of children should be used only as a measure of last resort and for the shortest appropriate period of time, and to avoid, wherever possible, the use of pretrial detention for children;