; and (5) by inserting at the end the following: (12) Determination of appropriate conditions for prerelease custody In determining appropriate conditions for prerelease custody pursuant to this subsection, and in accordance with paragraph (5), the Director of the Bureau of Prisons shall, to the extent practicable, subject prisoners who demonstrate continued compliance with the requirements of such prerelease custody to increasingly less restrictive conditions, so as to most effectively prepare such prisoners for reentry. No prisoner shall be transferred to community supervision unless the length of the prisoner’s eligibility for community supervision pursuant to paragraph (5) is equivalent to or greater than the length of the prisoner’s remaining period of prerelease custody. (13) Aliens subject to deportation If the prisoner is an alien whose deportation was ordered as a condition of supervised release or who is subject to a detainer filed by Immigration and Customs Enforcement for the purposes of determining the alien’s deportability, the Director of the Bureau of Prisons shall, upon the prisoner’s transfer to prerelease custody pursuant to paragraphs (1) and (2), deliver the prisoner to United States Immigration and Customs Enforcement for the purpose of conducting proceedings relating to the alien’s deportation. (14) Notice of transfer to prerelease custody (A) In general The Director of the Bureau of Prisons may not transfer a prisoner to prerelease custody pursuant to paragraph (2) if the prisoner has been sentenced to a term of incarceration of more than 3 years, unless the Director of the Bureau of Prisons provides prior notice to the sentencing court and the United States Attorney’s Office for the district in which the prisoner was sentenced. (B) Time requirement The notice required under subparagraph (A) shall be provided not later than 6 months before the date on which the prisoner is to be transferred. (C) Contents of notice The notice required under subparagraph (A) shall include the following