2. This exception shall apply only to housing accommodations that have been issued an exemption by the Department indicating satisfaction of the following conditions: (1) the housing accommodations are subject to and operating in accordance with a Supportive Housing or Transitional Housing contract; and (2) any tenant remaining in the housing accommodations at the commencement of the Supportive Housing or Transitional Housing contract shall be afforded all rights and protections provided by this Article. The Department shall have the authority to revoke an exemption issued pursuant to this subdivision for failure to adhere to any of the conditions for an exemption set forth in this subdivision. This exemption shall be deemed automatically revoked upon termination of the Supportive Housing or Transitional Housing contract or failure to operate in accordance with the Supportive Housing or Transitional Housing contract. (I) Housing accommodations in a nonprofit facility that has the primary purpose of providing short term treatment, assistance, or therapy for alcohol, drug, or other substance abuse and the housing is provided incident to the recovery program, and when the client has been informed in writing of the temporary or transitional nature of the housing at its inception. (J) Housing accommodations in a nonprofit facility that provides a structured living environment that has the primary purpose of helping homeless persons obtain the skills necessary for independent living in permanent housing and when occupancy is restricted to a limited and specific period of time of not more than twenty-four (24) months and when the client has been informed in writing of the temporary or transitional nature of the housing at its inception. (K) Occupancy in a housing accommodation leased by or otherwise paid for by a government entity or agency with the primary purpose of helping homeless persons obtain temporary or transitional housing.