(2)Whenever the finding made under sub-section (1) states that the accused person committed the act alleged, the court-martial shall, if such act would, but for the incapacity found, have constituted an offence, order such person to be detained in safe custody in such place and in such manner as may be prescribed and shall report the action taken to the officer convening the court.