TransformerHandler tHLast = (TransformerHandler)vTHandler.lastElement();
Transformer trans = tHLast.getTransformer();
Properties outputProps = trans.getOutputProperties();
Serializer serializer = SerializerFactory.getSerializer(outputProps);
serializer.setOutputStream(new FileOutputStream(target));
tHLast.setResult(new SAXResult(serializer.asContentHandler()));
reader.parse(source);
}
}