If the real property is conveyed in the manner provided in subparagraph (A), it shall be conveyed to the corporation only after all mortgages and liens are released. If the real property is conveyed in the manner provided in subparagraph (B), the corporation shall acquire the real property subject to any first mortgage created for the purpose of securing the payment of a loan of funds expended solely for the purchase of the real property by the seller; and any mortgage or lien created for any other purpose; provided that the corporation has previously consented to it in writing.
The corporation's interest created by this section shall constitute a statutory lien on the real property and shall be superior to any other mortgage or lien, except for any first mortgage created for the purpose of securing the payment of a loan of funds expended solely for the purchase of the real property by the seller; any mortgage insured or held by a federal housing agency; and any mortgage or lien created for any other purpose; provided that the corporation has previously consented to it in writing. The amount paid by the corporation to the seller shall be the difference, if any, between the purchase price determined by paragraph (1)(A) to (D), and the total of the outstanding principal balances of the mortgages and liens assumed by the corporation;
provided that the mortgagee's failure to provide written notice to the corporation shall not affect the mortgage holder's rights under the mortgage. The corporation shall be a party to any foreclosure action, and shall be entitled to its share of appreciation in the real property as determined under this chapter in lien priority when the payment is applicable, and if foreclosure occurs within the ten-year period after the purchase, the corporation shall also be entitled to all proceeds remaining in excess of all customary and actual costs and expenses of transfer pursuant to default, including liens and encumbrances of record; provided that the person in default shall be entitled to an amount that shall not exceed the sum of amounts determined pursuant to subsection (a)(1)(B) and (C).
HRS § 201H-47