When a devise charged by will upon real estate is wholly or in part limited over:
The Superior Court may, in a summary or other action by the executor, or a person interested in the real estate, direct the devise paid into court together with any additional sums as the court may deem reasonable to cover the expense of investing and taking charge of the devise. Upon payment into court, the real estate shall be wholly clear and discharged from the lien created by the will.
N.J.S. § 3B:23-39