(1) If custodial orders for measures under section 63 and section 64 are made in addition to a sentence of imprisonment, the measures shall be served before the sentence of imprisonment.
(2) The court shall order that all or part of the sentence be served before the measure, if the purpose of the measure will thereby be better facilitated. When making an order for custodial addiction treatment in addition to a term of imprisonment of not less than three years the court shall order that a part of the sentence shall be served before the measure. That part of the sentence is to be calculated in a manner that enables a decision under subsection (5) 1st sentence below to be made after the part of the sentence and the measure have been served. The court shall determine that the sentence shall be served before the measure if the convicted person is obliged to leave and may be deported from the Federal Republic of Germany and if there is reason to believe that his residence within Germany will be terminated during the sentence or immediately after the sentence will have been served.
(3) The court may subsequently make, modify or vacate an order pursuant to subsection (2) 1st or 2nd sentences above, if deemed appropriate based on the circumstances of the convicted person.
(4) If the measure is served in whole or in part before the sentence, any time spent serving the measure shall be credited against the sentence up to a maximum of two thirds of the term of imprisonment.
(5) If the measure is served before the sentence or a remainder of the sentence the court may grant early conditional release under section 57(1) 1st and 2nd sentences if half of the sentence has been served. If early release is not granted the measure shall continue; the court may order that the sentence be served instead if deemed appropriate based on the circumstances of the convicted person.