47.—(1) A child shall not be ordered to be detained in custody—
(a)for contempt of court; or
(b)in default of payment of a fine, costs, damages or compensation.
(2) Paragraph (1) shall not apply in the case of a child who has attained the age of 16 if the court certifies that his behaviour is such that no other method of dealing with him is appropriate.