11(1)Subject to subsections (8) to (12) and 28(5) and (8) and section 30, the surviving spouse or surviving common-law partner of a judge is immediately entitled, on the judge’s death, to be paid a surviving spouse’s pension or surviving common-law partner’s pension, as the case may be, calculated in accordance with subsection (3), (4), (5), (6) or (7), as the case may be, if the judge, at that time