InputStream input = null;
try {
xsltInputStream = new BufferedInputStream(updaterUrl.openStream());
final Source xsltSource = new StreamSource(xsltInputStream);
input = new BufferedInputStream(inputUrl.openStream());
final CleaningInputStream cleanedInput = new CleaningInputStream(input);
final Reader reader = new InputStreamReader(cleanedInput, cleanedInput.isUtf8() ? Charset.forName("UTF-8") : FileUtils.defaultCharset());
final Transformer trans = transFact.newTransformer(xsltSource);
trans.transform(new StreamSource(reader), result);
}
catch (final Exception ex) {
LogUtils.warn(ex);