(a) On approving local correctional facility plans that require State financial assistance, the Secretary shall enter into a written contract with the county or counties involved setting forth the rights, powers, duties, and responsibilities of all parties.
(b) The contract may provide for the housing and rehabilitation in a local correctional facility of inmates sentenced to State correctional facilities under conditions agreed on by all parties.
(c) The Secretary may not approve a contract unless the contract provides:
(1) for a periodic review of the facilities and rehabilitation and training programs of the local correctional facility by the Maryland Commission on Correctional Standards; and
(2) that the local correctional facility is in substantial compliance with the minimum mandatory standards described in § 8-103(a) of this article.
(d) In the absence of any contract, court order, or consent decree, inmates sentenced to the jurisdiction of the Division of Correction may not be housed in a local correctional facility for more than 30 days while awaiting transfer to the Division of Correction.