In the case of Yuan v. Liu, the court first conducted mediation according to law. Through mediation, the parties reached agreement on property division and child custody, and the court issued a mediation document to close the case, avoiding lengthy litigation and safeguarding the lawful rights of both parties.