*/
public PageEnvelope getPageEnvelope(DocumentFactory map, Map objectModel, Publication pub)
throws PageEnvelopeException {
Request request = ObjectModelHelper.getRequest(objectModel);
String contextPath = request.getContextPath();
Context context = ObjectModelHelper.getContext(objectModel);
String webappUrl = ServletHelper.getWebappURI(request);
String servletContextPath = context.getRealPath("");
return getPageEnvelope(map, contextPath, webappUrl, new File(servletContextPath), pub);
}