1. A method for creating an instance of an extension processor that handles a request from a client for a resource using hypertext transfer protocol, the request indicating in a uniform resource indicator (URI) that the resource is a java server page, the method comprising: providing a list of patterns of URIs for which an extension processor factory is responsible; loading a web application by a web container and providing a list of extension processor factories that are available to the web application by the web container; storing the list of patterns of URIs of each extension processor factory in the list of extension processor factories by the web application; routing the request to the web application; by a request mapper within the web application, comparing the request's URI with the lists of patterns of URIs stored by the web application and returning an extension processor for the request based on a pattern of the URI of the request; creating an instance of the extension processor by the extension processor factory the first time the client requests the resource; creating an instance of a servlet wrapper by the instance of the extension processor; adding the instance of the servlet wrapper to the request mapper; and routing subsequent requests for the resource directly to the servlet wrapper by the request mapper in the web application.