try { file = file.getCanonicalFile(); } catch (IOException ignore) { }
    Resource getResource(String name)    {      File file = new File(dir, name);      try	{	  file = file.getCanonicalFile();	}      catch (IOException ignore)	{	}      if (file.exists() && !file.isDirectory())	return new FileResource(this, name, file);      return null;    }