public ArrayList<String> getFileLists(String fn) {
		if(fn.endsWith("/"))
			fn.substring(0, fn.length()-1);

		File file = new File(fn);
		ArrayList<String> output = new ArrayList<String>();
		if(file.exists()) {
			if(file.isFile()) {
				// Extract the folder part of the name
				int dir_index = fn.lastIndexOf('/');
				if (dir_index > 0 && dir_index < fn.length()) {
					TestFolderPath.set(fn.substring(0, dir_index + 1));
				} else {  
					TestFolderPath.set("");
				}
				output.add(fn);
			} else {
				TestFolderPath.set(fn + "/");				
				for(String fl : file.list()) {
					if(fl.endsWith(".xml")) {
						output.add(TestFolderPath.get() + fl);
					}
				}  
			}
		}
		return output;
	}