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