The Enforcement Rules of the Immigration Act Article 21
If the temporary detention order of a detainee becomes invalid in accordance with Paragraph 5 of Article 38-2 of the Act, and if the deportation order is still effective and one of the circumstances set forth in Paragraph 1 of Article 38 of the Act are met, the National Immigration Agency may, after considering judgements of the court for releasing the detainee, impose alternatives to detention in accordance with Paragraph 2 of Article 38 of the Act to ensure that deportation of the person can be enforced.