Transformer transformer = tFactory.newTransformer(new StreamSource(style));
in = getXmlFileInputStream(xmlFile);
transformer.transform(new StreamSource(in), new StreamResult(out));
} catch (ArrayIndexOutOfBoundsException e) {
err(e);
throw new CCTagException("Error transforming '" + xmlFile.getName()
+ "'. You might be experiencing XML parser issues."
+ " Are your xalan & xerces jar files mismatched? Check your JVM version. "
+ e.getMessage(), e);
} catch (TransformerException e) {
err(e);
throw new CCTagException("Error transforming '" + xmlFile.getName()
+ "': " + e.getMessage(), e);
} finally {
closeQuietly(in);
}
}