[By resolution adopted in April 1981, the Board of Trustees of the Village of Whitesboro agreed to confer the benefits of § 18 of the Public Officers Law and to purchase insurance to provide for the defense and indemnification of Village officers and employees.]