String home; String file = CONF_XML; if(configuration == null) { home = findExistHomeFromProperties(); } else { File f = new File(configuration); if (!f.isAbsolute()) f = new File(new File(findExistHomeFromProperties()), configuration).getAbsoluteFile(); file = f.getName(); home = f.getParentFile().getPath(); } System.out.println("Configuring '" + instanceName + "' using " + home + File.separatorChar + file);
System.out.println("Configuring '" + instanceName + "' using " + Configuration.getPath());
    private void configure(String instanceName) throws XMLDBException {                String home;        String file = CONF_XML;             if(configuration == null) {            home = findExistHomeFromProperties();        } else {            File f = new File(configuration);            if (!f.isAbsolute())                f = new File(new File(findExistHomeFromProperties()), configuration).getAbsoluteFile();            file = f.getName();            home = f.getParentFile().getPath();        }        System.out.println("Configuring '" + instanceName + "' using " + home + File.separatorChar + file);        try {            Configuration config = new Configuration(file, home);            BrokerPool.configure(instanceName, 1, 5, config);                        if (shutdown != null)                BrokerPool.getInstance(instanceName).registerShutdownListener(shutdown);        } catch (Exception e ) {            throw new XMLDBException(ErrorCodes.VENDOR_ERROR, "configuration error", e );        }         currentInstanceName = instanceName;    }