Section 18(1)

18. Disciplinary imprisonment (1) Without prejudice to any
disciplinary action that may be taken under the section immediately
preceding, the Chief Inspector, the Deputy Chief Inspector or the
Superintendent may report to the court the case of any person detained
in a certified institution who habitually and willfully disobeys or
neglects to comply with any rule referred to in that section; and the
court may thereupon, if satisfied that the person has wilfully disobeyed
or neglected to comply with any such rule, convert the balance of the
period of his detention in a certified institution or part thereof into a
term of imprisonment.