532. On removing the defendant from office, the court, on an application, may confer the office on another person if facts proving that person’s right to the office are set out in the application for judicial review. The review judgment may award punitive damages against the defendant.