+ document.getFileURI() + " ...");
+ document.getFileURI() + " (" + document.getDocId() + ") ...");
    public void removeXMLResource(final Txn transaction, final DocumentImpl document,             boolean freeDocId) throws PermissionDeniedException {        if (readOnly)            throw new PermissionDeniedException(DATABASE_IS_READ_ONLY);        try {            if (LOG.isInfoEnabled()) {                LOG.info("Removing document "                    + document.getFileURI()                    + " ...");            }                        notifyDropIndex(document);            if (LOG.isDebugEnabled()) {                LOG.debug("removeDocument() - removing dom");            }            new DOMTransaction(this, domDb) {                public Object start() {                    StoredNode node = (StoredNode)document.getFirstChild();                    domDb.removeAll(transaction, node.getInternalAddress());                    return null;                }            }            .run();                        NodeRef ref = new NodeRef(document.getDocId());            final IndexQuery idx = new IndexQuery(IndexQuery.TRUNC_RIGHT, ref);            new DOMTransaction(this, domDb) {                public Object start() {                    try {                        domDb.remove(transaction, idx, null);                    } catch (BTreeException e) {                        LOG.warn("start() - " + "error while removing doc", e);                                     } catch (IOException e) {                        LOG.warn("start() - " + "error while removing doc", e);                    } catch (TerminatedException e) {                        LOG.warn("method terminated", e);                    }                    return null;                }            }            .run();                        removeResourceMetadata(transaction, document);                        if(freeDocId)                freeResourceId(transaction, document.getDocId());        } catch (ReadOnlyException e) {            LOG.warn("removeDocument(String) - " + DATABASE_IS_READ_ONLY);        }    }