public IServletConfig createConfig ( String servletName ) throws ServletException { return ( ( ( WebApp ) extensionContext ) . getWebExtensionProcessor ( ) . createConfig ( servletName ) ) ; }
A convenience method that creates a ServletConfig object . This also populates the necessary metaData which enables the Servlet associated with the returned config to correctly lookup NameSpace entries . It is highly recommended that extension processors use this method to create the config objects for the targets that the processor creates .