Magistrate nominee lauded for work in Dorchester, Brookline