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