William John Foster — Australian judge and attorney-general of New South Wales