The meaning and effect of the terms of a trust are determined by:(1) The law of the jurisdiction designated in the terms of the trust, provided there is a sufficient nexus to the designated jurisdiction at the time of the creation of the trust or during the trust administration, including, but not limited to, the location of real property held by the trust or the residence or location of an office of the settlor, trustee, or any beneficiary; or
(2) In the absence of a controlling designation in the terms of the trust, the law of the jurisdiction where the settlor resides at the time the trust is first created.
Notwithstanding subsection (1) or subsection (2), a designation in the terms of a trust is not controlling as to any matter for which the designation would be contrary to a strong public policy of this state.