(1)Whenever a person belonging to Class 2 is detained in a jail under section 330 of the Code of Criminal Procedure, 1973. the Superintendent shall apply to the District Magistrate for an order for his transfer to a mental hospital in anticipation of the receipt of orders from Government.