The provisions of §§ 14-303 and 14-305 of this subtitle do not apply to any trust to the extent that a court of competent jurisdiction determines that the application would be contrary to the terms of the instrument governing the trust and that it may not be changed properly to conform to these sections.
Md. Code, ET § 14-306