Section 12. (a) A certified copy of a custody judgment of another state may be filed in the office of the clerk or register of any court of competent jurisdiction in the commonwealth. The clerk or register shall treat the judgment in the same manner as a custody judgment of a court of the commonwealth. A custody judgment so filed has the same effect and shall be enforced in like manner as a custody judgment rendered by a court of the commonwealth.
(b) A person violating a custody judgment of another state the violation of which makes it necessary to enforce the judgment in the commonwealth may be required to pay the reasonable and necessary travel, witness and other expenses, including attorneys' fees, incurred by the party entitled to custody of the child.