William Gilbert Mair — New Zealand soldier, magistrate and judge (1832–1912)