synchronized(getServletContext()) instead of just synchronized(this)? what's the reason?
Here "this" means
Servlet which have the doGet() where we cont predict the
Thread safety of the context object, so we have to lock that using servletContext
you can see int the bottom right corner in the Box, that is it will compile but not solve that problem.