A RETIRED Brisbane magistrate who molested a young boy for 12 years has been jailed for up to nine years.