Configuration config = new Configuration("conf.xml", home);
Configuration config = new Configuration();
	public void  run(String[] args) {		if (args.length == 0) {			System.out.println("No configuration file specified!");			return;		}				String shutdownHookOption = System.getProperty("exist.register-shutdown-hook", "true");		boolean registerShutdownHook = shutdownHookOption.equals("true");				// configure database		String home = System.getProperty("exist.home");		if (home == null)			home = System.getProperty("user.dir");		System.out.println("Configuring eXist from " + home + File.separatorChar + "conf.xml");		try {			// we register our own shutdown hook			BrokerPool.setRegisterShutdownHook(false);						// configure the database instance			Configuration config = new Configuration("conf.xml", home);			BrokerPool.configure(1, 5, config);						// register the XMLDB driver			Database xmldb = new DatabaseImpl();			xmldb.setProperty("create-database", "false");			DatabaseManager.registerDatabase(xmldb);            configureCluster(config);        } catch (Exception e) {			System.err.println("configuration error: " + e.getMessage());			e.printStackTrace();			return;		}		// start Jetty		final Server server;		try {			server = new Server(args[0]);			BrokerPool.getInstance().registerShutdownListener(new ShutdownListenerImpl(server));			server.start();			if (registerShutdownHook) {				// register a shutdown hook for the server				Thread hook = new Thread() {					public void run() {						setName("Shutdown");						BrokerPool.stopAll(true);						try {							server.stop();						} catch (InterruptedException e) {						}						try {							Thread.sleep(1000);						} catch (Exception e) {							e.printStackTrace();						}					}				};				Runtime.getRuntime().addShutdownHook(hook);			}		} catch (Exception e) {			e.printStackTrace();		}	}