/** Should we publish a ServletRequestHandledEvent at the end of each request? */privateboolean publishEvents = true; /** * Set whether this servlet should publish a ServletRequestHandledEvent at the end * of each request. Default is "true"; can be turned off for a slight performance * improvement, provided that no ApplicationListeners rely on such events. * @see org.springframework.web.context.support.ServletRequestHandledEvent */publicvoidsetPublishEvents(boolean publishEvents){this.publishEvents = publishEvents;}