Massachusetts General Laws
Chapter 231a - Procedure for Declaratory Judgments
Section 6 - Declaratory Relief in Other Actions

Section 6. In any action heretofore or hereafter brought to obtain a judgment or other consequential relief, whether such judgment or relief is granted or not, the court may make a binding determination as provided in this chapter upon application of any party made in his pleadings.