(a) Borrower shall indemnify the Agent, each Noteholder and each Related Party of any of the foregoing Persons (each such Person being called an “ Indemnitee ”) against, and hold each Indemnitee harmless from, any and all losses, claims, damages, liabilities and related costs and expenses (including the fees, charges and disbursements of any counsel for any Indemnitee), incurred by any Indemnitee or asserted against any Indemnitee by any Person (including the Borrower) arising out of, in connection with, or as a result of (i) the execution or delivery of this Agreement, any other Note Purchase Document or any agreement or instrument contemplated hereby or thereby, the performance by the parties hereto of their respective obligations hereunder or thereunder or the consummation of the transactions contemplated hereby or thereby, (ii) the use or proposed use of the proceeds therefrom, or (iii) any actual or prospective claim, litigation, investigation or proceeding relating to any of the foregoing, whether based on contract, tort or any other theory, whether brought by a third party or by any Obligor, and regardless of whether any Indemnitee is a party thereto; provided that such indemnity shall not, as to any Indemnitee, be available to the extent that such losses, claims, damages, liabilities or related expenses (x) are determined by a court of competent jurisdiction by final and nonappealable judgment to have resulted from the gross negligence or willful misconduct of such Indemnitee or (y) result from a claim brought by any Obligor against an Indemnitee for a material breach in bad faith of such Indemnitee’s obligations hereunder or under any other Note Purchase Document, if any such Obligor has obtained a final and nonappealable judgment in its favor on such claim as determined by a court of competent jurisdiction.