try {
resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
Document doc = getSourceDocument();
DocumentIdToPathMapper mapper = doc.getPublication().getPathMapper();
String path = mapper.getPath(doc.getId(), getSourceDocument().getLanguage());
String sourceUri = doc.getSourceURI();
String pubId = doc.getPublication().getId();
String tempSourceUri = "context://lenya/pubs/" + pubId + "/work/bxe/content/"
+ doc.getArea() + "/" + path + ".tmp";
tempSourceUri = tempSourceUri.substring("lenya://".length());