else
return result; } else
	private final boolean parse(String fileName) throws XMLDBException {		fileName =			fileName.replace('/', File.separatorChar).replace(				'\\',				File.separatorChar);		File file = new File(fileName);		XMLResource document;		String xml;		File files[];		if (file.canRead()) {			if (file.isDirectory()) {				if (recurseDirs) {					bytesCount = 0;					fileCount = 0;					long start = System.currentTimeMillis();					boolean result = 						findRecursive(current, file, path);					System.out.println("storing " + fileCount + " files (" +						(bytesCount / 1024) + "K) took " + 						(System.currentTimeMillis() - start) + "ms.");				else					files = file.listFiles(new XMLFilenameFilter());			} else {				files = new File[1];				files[0] = file;			}		} else			files = DirectoryScanner.scanDir(fileName);		if (current instanceof Observable && verbose) {			ProgressObserver observer = new ProgressObserver();			((Observable) current).addObserver(observer);		}		long start;		long start0 = System.currentTimeMillis();		long bytes = 0;		for (int i = 0; i < files.length; i++) {			start = System.currentTimeMillis();			document =				(XMLResource) current.createResource(					files[i].getName(),					"XMLResource");			message(				"storing document "					+ files[i].getName()					+ " ("					+ (i + 1)					+ " of "					+ files.length					+ ") ...");			document.setContent(files[i]);			current.storeResource(document);			messageln("done.");			messageln(				"parsing "					+ files[i].length()					+ " bytes took "					+ (System.currentTimeMillis() - start)					+ "ms.\n");			bytes += files[i].length();		}		messageln(			"parsed "				+ bytes				+ " bytes in "				+ (System.currentTimeMillis() - start0)				+ "ms.");		return true;	}	private final void mkcol(String collPath) throws XMLDBException {		if (collPath.startsWith("/db"))			collPath = collPath.substring("/db".length());		CollectionManagementService mgtService;		Collection c;		String p = "/db", token;		StringTokenizer tok = new StringTokenizer(collPath, "/");		while (tok.hasMoreTokens()) {			token = tok.nextToken();			p = p + '/' + token;			c =				DatabaseManager.getCollection(					properties.getProperty("uri") + p,					properties.getProperty("user"),					properties.getProperty("password"));			if (c == null) {				mgtService =					(CollectionManagementService) current.getService(						"CollectionManagementService",						"1.0");				current = mgtService.createCollection(token);			} else				current = c;		}		path = p;	}