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