N.Y. Uniform Commercial Code § 9-109
Section 9--109. Scope.
(a) General scope of article. Except as otherwise provided in subsections (c) and (d), this article applies to:
(c) Extent to which article does not apply. This article does not apply to the extent that:
(d) Inapplicability of article. This article does not apply to:
(10) a right of recoupment or set-off, but:
(11) the creation or transfer of an interest in or lien on real property, including a lease or rents thereunder, except to the extent that provision is made for: