(1)Where it appears in the course of the trial by court-martial of any person, charged with an offence that such person is insane, the court shall find specially the fact of his insanity and shall order such person to be kept in strict custody in such place and in such manner as the court may deem fit until the directions of the Central Government thereupon are known.