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