"Transform source = " + source + ", stylesheet = " + stylesheet + ", parameters = " + params + ", result = " + result);
}
final TransformerHandler handler = getTransformerHandler(stylesheet);
if (params != null) {
final Transformer transformer = handler.getTransformer();
transformer.clearParameters();
String[] names = params.getNames();
for (int i = names.length - 1; i >= 0; i--) {
transformer.setParameter(names[i], params.getParameter(names[i]));
}
}