Mass. Gen. Laws ch. 106, § 1-301
(b) To the extent that this chapter governs a transaction, if one of the following sections specifies the applicable law, that section governs and a contrary agreement is effective only to the extent permitted by the section specified: