Each such bond and mortgage or note and mortgage shall be repaid over or within a period of forty years, provided that such period may be extended as the agency may determine necessary to ensure the continued affordability or economic viability of the multiple dwelling, in such manner as may be provided in such bond and mortgage or note and mortgage and contract . Such bond and mortgage or note and mortgage and the contract in connection with such permanent and temporary loans may contain such other terms and provisions not inconsistent with the provisions of this article as the local legislative body or the agency may deem necessary or desirable to secure repayment of the loan, the interest thereon and other charges in connection therewith and to carry out the purposes and provisions of this article
, including, but not limited to, providing that the lien created by such bond and mortgage or note and mortgage, and, if applicable, any regulatory agreement executed by the owner and the agency or restrictive covenant approved by such agency, may be recorded in an equal or subordinate position, or subsequently made equal or subordinate, to a lien recorded by any private lender against such multiple dwelling.
N.Y. Priv. Hous. Fin. Law § 402