(1) The Comptroller shall not grant a clearance to any ship until the master of such ship has declared to the Comptroller the name of the nation to which the ship belongs, and the Comptroller shall thereupon write that name on the clearance.
(2) If a ship attempts to proceed to sea without the clearance referred to in subsection (1) the ship may be detained until the declaration referred to in that subsection is made and other conditions relating to the issue of a clearance are met.