public File getLatestFile( String name ) throws IOException {
		name = cleanName( name );
		File dir = new File( headRoot + "/" + name );
		int maxId = 0;
		File maxFile = null;
		if( dir.exists() ) for( File f : dir.listFiles() ) {
			if( f.isFile() && HEAD_NAME_PAT.matcher(f.getName()).matches() ) {
				int id = Integer.parseInt(f.getName());
				if( id > maxId ) {
					maxId = id;
					maxFile = f;
				}
			}
		}
		return maxFile;
	}