Any judgment or order of commitment by a court of competent jurisdiction of another State or of the District of Columbia, committing a person to the Veterans Administration, or other agency of the United States Government for care or treatment, shall have the same force and effect as to the committed person while in this State as in the jurisdiction in which is situated the court entering the judgment or making the order; and the courts of the committing State, or of the District of Columbia, shall be deemed to have retained jurisdiction of the person so committed for the purpose of inquiring into the mental condition of such person, and of determining the necessity for continuance of his restraint. Consent is hereby given to the application of the law of the committing State or District in respect to the authority of the chief officer of any facility of the Veterans Administration, or of any institution operated in this State by any other agency of the United States to retain custody, or transfer, parole or discharge the committed person, but nothing contained herein shall deprive any court of competent jurisdiction in this State of its general jurisdiction in respect to such persons, as in the case of other persons in this State.
N.J.S. § 30:6B-3