; or (B) the individual is adjudicated with respect to immigration status in a local court in the applicable jurisdiction, receives relief from removal, and enters an applicable program for unaccompanied refugee minors. (d) Consideration relating to U.S. Immigration and Customs Enforcement custody In considering a sponsorship application for an unaccompanied noncitizen child who may attain 18 years of age in the custody of the Secretary, the Director shall consider the potential for, and impact of, trauma and the risk to the safety and well-being of the child if the child were to be transferred to the custody of U.S. Immigration and Customs Enforcement on attaining such age. (e) Prohibition on detention and removal An individual who was in the custody of the Secretary as an unaccompanied noncitizen child shall not be apprehended, arrested, transferred, or taken into the custody of U.S. Immigration and Customs Enforcement, or removed from the United States, based solely on having attained 18 years of age. (f) Continued access to due process, legal relief, and housing An individual who entered the United States as a child shall not lose the opportunity for due process and potential legal relief, or access to community-based housing, based solely on having attained the age of 18 years. 244. Custody review by Ombudsperson (a) In general If an unaccompanied noncitizen child, the legal counsel or prospective sponsor of such child, or the legal counsel of such prospective sponsor has reasonable cause to believe that the child should have been released, the child, the prospective sponsor, or such legal counsel may request an investigation by the Ombudsperson. (b) Notification of lengthy custody In the case of any unaccompanied noncitizen child who remains in the custody of the Secretary for 45 days or more, the Director shall— (1) notify the Ombudsperson of such continued custody