In accordance with the provisions of article 706-135 of this code, the regime for involuntary hospitalisation ordered by a court pursuant to this article is, with regard to the conditions for lifting and extending this measure, identical to that for hospitalisation ordered by the State representative pursuant to articles L. 3213-1 and L. 3213-7 of the Public Health Code with regard to a person declared criminally irresponsible due to a mental disorder. In particular, such hospitalisation may only be terminated in accordance with the procedures laid down by Article L. 3213-8 of the Public Health Code, and the provisions of article L. 3213-4 of that code requiring, on pain of automatic release from hospitalisation, the continuation of that measure by the State representative at the end of the periods provided for by that article are consequently not applicable.