env.printLine("No well-formed XML file(s) found at location " + paths[i] + ".");
env.printLine("No well-formed XML file(s) found at location " + path + ".");
	public void execute(Environment env, String arg) {		if( arg != null && arg.length() > 0 ) {			if(env instanceof Shell) {				Shell shell = (Shell)env;				//XXX currently we can only load documents into the default database which the				//user connected to. Need to figure out how to support loading documents into				//any db.				String currentDb = shell.getProperties().getString("database");				String defaultDb = shell.getProperties().getString("default-database");				if(defaultDb == null && currentDb == null) {					env.printLine("Default database is not set. Please set and try again.");					return;				}				if(currentDb == null && defaultDb != null) {					currentDb = defaultDb;				}				String port = shell.getProperties().getString("port");				if(!defaultDb.equals(currentDb)) {					env.printLine("Current database '" + currentDb + "' is not the default database bound to port '" + port + "'.");					env.printLine("Can only load documents into '" + defaultDb + "'. Please change current database to confirm.");					return;				}				String[] paths = arg.split("\\s+");				for(int i = 0; i < paths.length; i++) {					List files = FileScanner.findFiles(paths[i]);					if( files != null && files.size() > 0) {						for(Iterator it = files.iterator(); it.hasNext();) {							File f = (File)it.next();							loadDocument(env, f.getAbsolutePath(), f);						}					} else {						env.printLine("No well-formed XML file(s) found at location " + paths[i] + ".");					}				}			}		} else {			env.printLine("You must specify a file path to load.");		}	}