cfg.setWorkingDirectory( install.getPartitionsDirectory() );
if ( install != null ) { cfg.setWorkingDirectory( install.getPartitionsDirectory() ); }
    public void init( InstallationLayout install, String[] args ) throws Exception    {        long startTime = System.currentTimeMillis();        MutableServerStartupConfiguration cfg;        if ( install != null )        {            log.info( "server: loading settings from {}", install.getConfigurationFile() );            ApplicationContext factory = null;            factory = new FileSystemXmlApplicationContext( install.getConfigurationFile().toURL().toString() );            cfg = ( MutableServerStartupConfiguration ) factory.getBean( "configuration" );            env = ( Properties ) factory.getBean( "environment" );        }        else        {            log.info( "server: using default settings ..." );            env = new Properties();            cfg = new MutableServerStartupConfiguration();        }        env.setProperty( Context.PROVIDER_URL, "ou=system" );        env.setProperty( Context.INITIAL_CONTEXT_FACTORY, ServerContextFactory.class.getName() );        cfg.setWorkingDirectory( install.getPartitionsDirectory() );        env.putAll( cfg.toJndiEnvironment() );        new InitialDirContext( env );        workerThread = new Thread( worker, "SynchWorkerThread" );        if (log.isInfoEnabled())        {            log.info( "server: started in {} milliseconds", ( System.currentTimeMillis() - startTime ) + "");        }    }