in taking this view we are not denying that the loss of liberty may actually be necessary in a few extreme cases and this should only be where the child presents a significant danger to him or herself  or where there is a significant risk  of major further offending and severe damage to community.