GenericServlet implements ServletConfig methods by simply delegating the configuration object passed to the init method. Thus, he implements ServletConfig just for convenience - he then simply delegates. So instead of calling getServletConfig().getInitParameter() you can call getInitParameter()
Bozho source share