s 21 Period of any imprisonment or detention to be deemed to be period of residence, after care or supervision
(1) Where a person who is undergoing residence at a Rehabilitation Centre supervision by an officer or has been ordered to do so but has not yet commenced to undergo the same, is sentenced by any court to any term of imprisonment, or by a *Court for Children to a term of detention, or is detained under any law relating to preventive detention, such imprisonment or detention shall take precedence over the residence or supervision as aforesaid, and the period of imprisonment or detention served shall be deemed to be residence at a Rehabilitation Centre or supervision, as the case may be, and if upon completion of such period of imprisonment or detention there still remains unexpired any portion of the period for which he had been ordered to reside at a Rehabilitation Centre, or undergo supervision, as the case may be, he shall be required to reside at a Rehabilitation Centre or undergo supervision, as the case may be, for such unexpired portion thereof. (2) The foregoing provisions of this section shall not apply to a person who is admitted to a Rehabilitation Centre under section 8 or 9. *NOTE—The original provision which used the word ―Juvenile Court‖ is now construed as ―Court for Children–see section 131 of the Child Act 2001 [Act 611]