(1) Where a prisoner upon whom a sentence of imprisonment for an offence against a law of a Territory has been imposed is transferred, in pursuance of a transfer order, to a State or Territory, any law of the Commonwealth (including this section) applies, and the provisions of any law of that State or Territory and the provisions of the State transfer law of any other State apply, in relation to that sentence on and after the transfer of that prisoner as if that sentence had been imposed upon the prisoner under, and for an offence against, a law of the State or Territory to which he or she is transferred.
(2) Where a prisoner upon whom a sentence of imprisonment for an offence against a law of a State has been imposed is transferred, in pursuance of a transfer order or a State order of transfer or both, to a Territory, any law of the Commonwealth (including this section) applies, and the provisions of any law of that Territory apply, in relation to that sentence on and after the transfer of that prisoner as if that sentence had been imposed upon the prisoner under, and for an offence against, the law of that Territory.
(3) In the application:
(a) of any law of the Commonwealth (including this section) and of the provisions of any law of a State or Territory in relation to a transferred Territory sentence of a prisoner; or
(b) of any law of the Commonwealth (including this section) and of the provisions of any law of a Territory in relation to a transferred State sentence of a prisoner;
any period of imprisonment served by the prisoner in respect of the sentence of imprisonment to which the transferred sentence is attributable has the effect that it would have if the prisoner had served it in respect of the transferred sentence.