HttpServer http = new HttpServer( config, httpPort, 1, threads );
http = new HttpServer( config, httpPort, 1, threads );
    public static void main( String args[] ) throws Exception {        InteractiveClient.printNotice();		CLArgsParser optParser = new CLArgsParser( args, OPTIONS );		if(optParser.getErrorString() != null) {			System.err.println( "ERROR: " + optParser.getErrorString());			return;		}		List opt = optParser.getArguments();		int size = opt.size();		CLOption option;        int httpPort = 8088;        int rpcPort = 8081;        int threads = 5;		for(int i = 0; i < size; i++) {			option = (CLOption)opt.get(i);			switch(option.getId()) {				case HELP_OPT :					printHelp();					return;				case DEBUG_OPT :					XmlRpc.setDebug(true);					break;				case HTTP_PORT_OPT :					try {						httpPort = Integer.parseInt( option.getArgument() );					} catch( NumberFormatException e ) {						System.err.println("option -p requires a numeric argument");						return;					}					break;				case XMLRPC_PORT_OPT :					try {						rpcPort = Integer.parseInt( option.getArgument() );					} catch( NumberFormatException e ) {						System.err.println("option -x requires a numeric argument");						return;					}					break;				case THREADS_OPT :					try {						threads = Integer.parseInt( option.getArgument() );					} catch( NumberFormatException e ) {						System.err.println("option -t requires a numeric argument");						return;					}					break;			}		}		        String pathSep = System.getProperty( "file.separator", "/" );        String home = System.getProperty( "exist.home" );        if ( home == null )            home = System.getProperty( "user.dir" );        System.out.println( "loading configuration from " + home +            pathSep + "conf.xml" );        Configuration config = new Configuration( "conf.xml", home );        BrokerPool.configure( 1, threads, config );        System.out.println( "starting HTTP listener at port " + httpPort );        HttpServer http = new HttpServer( config, httpPort, 1, threads );        http.start();        System.out.println( "starting XMLRPC listener at port " + rpcPort );        XmlRpc.setEncoding( "UTF-8" );        WebServer webServer = new WebServer( rpcPort );        AuthenticatedHandler handler = new AuthenticatedHandler( config );        webServer.addHandler( "$default", handler );        webServer.start();        System.err.println( "waiting for connections ..." );    }