1. Arrest, detention or imprisonment of a child shall not be imposed if the aim may be achieved through a more lenient measure.
2. Arrest, detention or imprisonment of a child shall apply in accordance with the provisions of this Code, as well as the criminal procedural law, to the extent this Code does not foresee otherwise.
3. The measures foreseen in paragraph 2 if this article shall be used only as a last resort, for a shortest time possible, and they shall be subject to periodic review by the court.