Nothing contained in K.S.A. 58-24a01, et seq., and amendments thereto, shall be construed as restricting the power of a court of proper jurisdiction to permit a fiduciary to deviate from the terms of any will, agreement, or other instrument relating to the acquisition, investment, reinvestment, exchange, retention, sale or management of fiduciary property.
K.S.A. 58-24a19