Notwithstanding any provisions of the General Laws to the contrary, (1) for the purposes of determining his pension responsibilities a special justice of the Boston juvenile court who serves full-time in accordance with the provisions of this section shall not be subject to the provisions of section sixty-five D of chapter thirty-two; and (2) for purposes of determining the pension rights of a special justice of the Boston juvenile court who files a certificate in accordance with the provisions of this section said special justice may elect to waive the provisions of section sixty-five B of chapter thirty-two and his full-time service shall be deemed the service of a justice of a district court, other than the chief justice, and said special justice shall be entitled to the same credit for his part-time service, if any, as a special justice as is provided in section sixty-five A of chapter thirty-two for a justice of a district court who has previously served as a special justice, provided, however, that nothing herein shall be construed to alter the pension rights and responsibilities applicable to a special justice of the Boston juvenile court who does not file a certificate under the provisions of this section.
Mass. Gen. Laws ch. 218, § 58B