(a) Whenever a judge of a drug court determines that a participant who has pled to a felony offense has committed a violation of his or her conditions of participation which would, in the judge's opinion, warrant a period of incarceration to encourage compliance with program requirements, the cost of the incarceration, not to exceed a period of thirty days in any one instance, shall be paid by the Division of Corrections. The judge must make a written finding that the participant would otherwise be sentenced to the custody of the Commissioner of Corrections for service of the underlying sentence.
(b) Whenever a drug court judge incarcerates a participant pursuant to subsection (a) of this section, the clerk of the circuit court shall provide a copy of the order of confinement within five days to the Commissioner of Corrections.