Mass. Gen. Laws ch. 209B, § 11
(b) Upon request of the court of another state a competent court of the commonwealth may order a person in the commonwealth to appear alone or with the child in a custody proceeding in another state. The court may condition compliance with the request upon assurance by the other state that travel and other necessary expenses will be advanced or reimbursed.
Notwithstanding any provision of this chapter to the contrary, no child shall be ordered or compelled to appear or attend such proceeding in another state when, after a hearing a judge makes a finding that there is probable cause to believe that such child may be placed in jeopardy or exposed to risk of mental or physical harm by such return to said other state.