transformer = XSLTTransformerFactory.getInstance().newTransformer(this.getXSLPath(""));
} else {
LOGGER.trace("transform using xslt " + xslPath);
}
if (transformer == null) {
throw new NotFoundException("xslt resource " + xslPath + " not found");
}
StreamSource xmlSourceStream = new StreamSource(xmlInputStream);
StreamResult resultStream = new StreamResult(resultOutputStream);
transformer.transform(xmlSourceStream, resultStream);
transformer = null;