N.Y. Real Property Actions & Proceedings Law § 796-H
1. The court shall render a final judgment either:
(a) Dismissing the petition for failure to affirmatively establish the allegations thereof or because of the affirmative establishment by the owner or a mortgagee or lienor of record of a defense or defenses specified in section seven hundred ninety-six-g of this article; or (b)(i) Directing that:
2.