new File( PentahoSystem.getApplicationContext().getSolutionPath( slaveServerConfigFilename ) );
if ( slaveServerConfigFile.exists() ) {
InputStream is = new FileInputStream( slaveServerConfigFile );
Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse( is );
Node configNode = XMLHandler.getSubNode( document, SlaveServerConfig.XML_TAG );
SlaveServerConfig config = new SlaveServerConfig( new LogChannel( "Slave server config" ), configNode );
config.setFilename( slaveServerConfigFile.getAbsolutePath() );
SlaveServer slaveServer = new SlaveServer();
config.setSlaveServer( slaveServer );
CarteSingleton.setSlaveServerConfig( config );
}
} catch ( Throwable t ) {
t.printStackTrace();
Logger.error( KettleSystemListener.class.getName(), t.getMessage() );