(4)Subject to the provisions of this Act, the Central Government may make rules providing for the manner in which and the period for which any person subject to this Act may be taken into and detained in military custody, pending the trial by any competent authority for any offence committed by him.