.parse(stylesheet.toString()), stylesheet.toString());/*
* getClass().getResourceAsStream(
* "mail-template.xsl")));
*/
final TransformerFactory tf = TransformerFactory.newInstance();
tf.setURIResolver(new LangURIResolver(Arrays.asList(acceptedLocales), stylesheet));
final Transformer transformer;
transformer = tf.newTransformer(styleSheet);
// transformer =getTransformer(styleSheet);
final PipedOutputStream pipedOut = new PipedOutputStream();