(2) Where a seaman or apprentice deserts in Saint Lucia from a ship registered in a country to which this section applies, the master of the ship may apply to a court for assistance in apprehending the deserter, and the court and its officers shall give all assistance within their power, and for that purpose the court may, on information given on oath, issue a warrant for the deserter to be conveyed on board the ship, or to be delivered to the master or mate of the ship or to the owner of the ship or his or her agent, to be so conveyed.