THE BORROWER HEREBY IRREVOCABLY WAIVES, TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, ANY RIGHT IT MAY HAVE TO A TRIAL BY JURY IN ANY LEGAL PROCEEDING DIRECTLY OR INDIRECTLY RELATING TO THIS NOTE , THE SECURITY AGREEMENT OR THE TRANSACTIONS CONTEMPLATED HEREBY OR THEREBY WHETHER BASED ON CONTRACT, TORT OR ANY OTHER THEORY.