public XMLDocument transform(XMLStreamReader source, TransformationContext context) {
try {
HelperContext helperContext = SDOContextHelper.getHelperContext(context);
XMLStreamHelper streamHelper = SDOUtil.createXMLStreamHelper(helperContext);
XMLDocument target = streamHelper.load(source);
source.close();
return target;
} catch (Exception e) {
throw new TransformationException(e);
}