"Transform source = " + source + ", stylesheet = " + stylesheet + ", parameters = " + params + ", result = " + result);
}
final TransformerHandler handler = getTransformerHandler(stylesheet);
if (params != null) {
final Transformer transformer = handler.getTransformer();
transformer.clearParameters();
final Iterator i = params.entrySet().iterator();
while ( i.hasNext() ) {
final Map.Entry current = (Map.Entry)i.next();
transformer.setParameter(current.getKey().toString(), current.getValue());
}