The examining magistrate or the liberty and custody judge shall specify the duration of the measure, which may not exceed that of the detention order, in the order by which he subjects a person to judicial isolation. If this is not specified, the duration is that of the detention order. These instructions are mentioned in the individual notice accompanying the detention order or, if the measure is decided at a later date, in any other document sent to the head of establishment.