}
public void generate( String pTemplate, String pOptions ) throws Exception {
Service s = new Service();
s.setTemplatePaths( ListUtil.make( new BasicTemplatePath( iDependsFolder+pTemplate ) ) );
s.setConfigFolder( iConfigFolder );
s.addPropertySet( Service.CONF_system, s.loadBaseConfigFiles( new File( iConfigFolder, "system.conf" ) ) );
PropertySet props = new PropertySet();
props.set( Property.main_OutputFolder, iDependsFolder );
props.set( Property.main_WorkFolder, iDependsFolder );
props.set( Property.main_CodeWriterOptions, pOptions );
s.addPropertySet( Service.CONF_cmdline, props );
UserMessageHandler umh = new CommandLineUserMessageHandler();
umh.setThreshold( umh.DEBUG );
s.setUserMessageHandler( umh );
s.build();
}