private String removeExt(String filename) {
		if (exts == null || exts.length == 0) {
			return filename;
		}
		for (int i = exts.length - 1; i >= 0; --i) {
			if (filename.endsWith(exts[i])) {
				return filename.substring(0,
						filename.length() - exts[i].length());
			}
		}
		return filename;
	}