Thread.dumpStack();
	public DocumentImpl storeTemporaryDoc(org.exist.memtree.DocumentImpl doc) throws XPathException {		try {            Thread.dumpStack();			DocumentImpl targetDoc = broker.storeTemporaryDoc(doc);			watchdog.addTemporaryFragment(targetDoc.getFileName());            LOG.debug("Stored: " + targetDoc.getDocId() + ": " + targetDoc.getName() +            		": " + targetDoc.printTreeLevelOrder());			return targetDoc;		} catch (EXistException e) {			throw new XPathException(TEMP_STORE_ERROR, e);		} catch (PermissionDeniedException e) {			throw new XPathException(TEMP_STORE_ERROR, e);		} catch (LockException e) {			throw new XPathException(TEMP_STORE_ERROR, e);		}	}