getLogger().error("Error when transforming XML", se); throw new RuntimeException("Error transforming XML. See error log for details: "+se);
getLogger().error("Error when transforming XML: "+se.getMessage(), se.getException()); throw new RuntimeException("Error transforming XML. See error log for details: "+se.getMessage()+". Nested exception: "+se.getException().getMessage());
    protected Document transform(Document doc) {        getLogger().debug("## Transforming with element='"+elementXPath+"', id='"+idXPath+"'");        Document newDoc = null;        try {            newDoc = addIds(doc, elementXPath, idXPath);        } catch (SAXException se) {            // Really ought to be able to propagate these to caller            getLogger().error("Error when transforming XML", se);            throw new RuntimeException("Error transforming XML. See error log for details: "+se);        }        return newDoc;    }