public String rootFilename(String filename, Serializable structure) {
		int lastIndex = filename.lastIndexOf('.');
		if (lastIndex == -1)
			return filename;
		String smallname = filename.substring(0, lastIndex);
		if (filename.equals(proposeFilename(smallname, structure)))
			return smallname;
		return filename;
	}