System.out.println( "Loading configuration from " + home +
System.out.println( "Loading configuration from " + Configuration.getExistHome().getAbsolutePath() +
    public void run(String[] args) throws Exception {        printNotice();                String home = System.getProperty( "exist.home" );        if ( home == null )            home = System.getProperty( "user.dir" );                Properties props = new Properties(DEFAULT_PROPERTIES);                configure(props);                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 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 :                    props.setProperty("port", option.getArgument());                    break;                case THREADS_OPT :                    try {                        threads = Integer.parseInt( option.getArgument() );                    } catch( NumberFormatException e ) {                        System.err.println("option -t requires a numeric argument");                        return;                    }                    break;            }        }                int httpPort = 8088;        try {            httpPort = Integer.parseInt(props.getProperty("port"));        } catch( NumberFormatException e ) {            System.err.println("port needs to be number");            return;        }                System.out.println( "Loading configuration from " + home +                File.separatorChar + "conf.xml" );        Configuration config = new Configuration( "conf.xml", home );        BrokerPool.configure( 1, threads, config );        BrokerPool.getInstance().registerShutdownListener(new ShutdownListenerImpl());        initXMLDB();                    startHTTPServer(httpPort, props);                System.out.println("\nServer launched ...");        System.out.println("Installed services:");        System.out.println("-----------------------------------------------");        if (props.getProperty("rest.enabled").equalsIgnoreCase("yes"))        	System.out.println("REST servlet:\tlocalhost:" + httpPort);        if (props.getProperty("webdav.enabled").equalsIgnoreCase("yes"))        	System.out.println("WebDAV:\t\tlocalhost:" + httpPort + "/webdav");        if (props.getProperty("xmlrpc.enabled").equalsIgnoreCase("yes"))        	System.out.println("XMLRPC:\t\tlocalhost:" + httpPort + "/xmlrpc");    }