law: 144. Lunacy of accused.-
  (1) Whenever, in the course of a trial by a court-martial, it appears to the court that the person charged is by reason of unsoundness of mind incapable of making his defence, or that he committed the act alleged but was by reason of unsoundness of mind incapable of knowing the nature of the act or knowing that it was wrong or contrary to law, the court shall record a finding accordingly.
  (2) The presiding officer of the court shall forthwith report the case to the confirming officer.
  (3) The confirming officer to whom the case is reported under sub-section (2) may, if he does not confirm the finding, take steps to have the accused person tried by the same or another court-martial for the offence with which he was charged.
  (4) A confirming officer confirming a finding in any case so reported to him under sub-section (2) shall order the accused person to be kept in custody in the prescribed manner and shall report the case for the orders of the Central Government.
  (5) On receipt of a report under sub-section (4) the Central Government may order the accused person to be detained in a lunatic asylum or other suitable place of safe custody.