Using this template you can design a new ServletContextAttributeListener class.

You should implement the ServletContextAttributeListener interface
if you are interested in observing the servlet context attributes lifecycle.