String webappUrl = request.getRequestURI().substring(request.getContextPath().length());
PublicationFactory factory = PublicationFactory.getInstance(getLogger());
String contextPath = SourceUtil.getFile(contextSource).getAbsolutePath();
URLInformation info = new URLInformation(webappUrl);
String publicationId = info.getPublicationId();
Publication pub = factory.getPublication(publicationId, contextPath);
if (pub.exists()) {
ExistingSourceResolver resolver = new ExistingSourceResolver();
templateManager.visit(pub, path, resolver);