A judge of the probate court who has found a party to be in civil or criminal contempt for failure to obey any order or judgment of the probate court relative to support of a spouse or children or relative to the custody of children shall, before ordering such person to be confined in a jail, review such order or judgment to determine that such order or judgment was issued by a court of competent jurisdiction and was not obtained by fraud.
Mass. Gen. Laws ch. 215, § 34B