A petition for a declaratory judgment seeks to have the court establish and promulgate the rights of the parties on a particular subject matter. (Goodman v. Reisch, 220 A.D.2d 383 [1995].) A declaratory judgment is remedial in nature, with the primary purpose to stabilize the legal relations that exist between the parties and to eliminate uncertainty as to the scope and content of both present and prospective legal obligations. (Id.)