// getPathInfo methods to provide reasonable values in the called servlet
// the dynamic proxy implements all interfaces of the original request
HttpServletRequest prequest = (HttpServletRequest) Proxy.newProxyInstance(
request.getClass().getClassLoader(),
getInterfaces(request.getClass()),
new DynamicProxyRequestHandler(request, path));
servlet.service(prequest, response);
}