The custodian, on behalf of the commissioner, may receive from any domestic insurer a deposit of securities necessary to enable it to transact business in any other state, territory, dependency or Federal District of the United States or in any foreign country under the laws thereof. Such securities shall be held by the custodian, on behalf of the commissioner, as long as the insurer desires to transact business in the state, territory, dependency or Federal District of the United States or foreign country requiring the deposit but the insurer may draw the dividends or receive the interest on the securities. When the insurer desires to discontinue its business therein and the deposit is no longer required by the laws thereof, the commissioner shall return the securities to the insurer depositing them. Before the commissioner shall return the securities deposited with him as aforesaid, the company shall institute an action and obtain a judgment therefore in the Superior Court substantially similar to that provided in R.S. 17:20-3.
N.J.S. § 17B:18-39