This statute requires the court to refer domestic relations cases to mediation, except when "extraordinary causes" require its waiver. The statute outlines the procedures for the filing of agreements, as well as the court's response to no agreement or bad faith participation.
Maine Statute 19-A-251: Alternative Dispute Resolution
Maine State Legislature. Jan. 1, 2019http://legislature.maine.gov/statutes/19-A/title19-Ach3sec0.html