String key = "javax.xml.transform.TransformerFactory";
String value = "org.apache.xalan.xsltc.trax.TransformerFactoryImpl";
Properties props = System.getProperties();
props.put(key, value);
System.setProperties(props);
TransformerFactory tFactory = TransformerFactory.newInstance();
tFactory.setAttribute("translet-name", "managed2live");
tFactory.setAttribute("package-name", "sos.scheduler.translet");
tFactory.setAttribute("use-classpath", Boolean.TRUE);
managed2liveTransformer = tFactory.newTransformer(new StreamSource("managed2live.xsl"));
} catch (Exception e){
spooler_log.error("Failed to initialize translet: "+e);
if (this.getConnection() != null) {
try { this.getConnection().rollback(); } catch (Exception ex) {} // no error handling
try { this.getConnection().disconnect(); } catch (Exception ex) {} // no error handling