; and (B) by adding at the end the following: (g) Prerelease custody or supervised release for risk and needs assessment system participants (1) Eligible prisoners This subsection applies in the case of a prisoner (as such term is defined in section 3635) who— (A) has earned time credits under the risk and needs assessment system developed under subchapter D (referred to in this subsection as the System ) in an amount that is equal to the remainder of the prisoner’s imposed term of imprisonment; (B) has shown through the periodic risk reassessments a demonstrated recidivism risk reduction or has maintained a minimum or low recidivism risk, during the prisoner’s term of imprisonment; (C) has had the remainder of the prisoner's imposed term of imprisonment computed under applicable law; and (D) (i) in the case of a prisoner being placed in prerelease custody, the prisoner— (I) has been determined under the System to be a minimum or low risk to recidivate pursuant to the last 2 reassessments of the prisoner; or (II) has had a petition to be transferred to prerelease custody or supervised release approved by the warden of the prison, after the warden’s determination that— (aa) the prisoner would not be a danger to society if transferred to prerelease custody or supervised release; (bb) the prisoner has made a good faith effort to lower their recidivism risk through participation in recidivism reduction programs or productive activities; and (cc) the prisoner is unlikely to recidivate