Questão jurídica principal
Whether Art. 65 CP allowed ordering an institutional therapeutic measure shortly before the end of the prison term.
Decisão extraída
Yes. The measure may be ordered if the judge decides before or during execution of the sentence; the nearness of the release date is irrelevant.
Fundamentação extraída
Art. 65 CP requires only that the court assess the conditions before or during execution. The first-instance court ruled while the sentence was still being served, so federal law was correctly applied.