code: public InputStream getResourceAsStream(String path) {
  
  		path = path.replace('/', File.separatorChar);
  		InputStream is = null;
  		try {
  			is = new FileInputStream(new File(baseDir, path));
  		} catch (FileNotFoundException e) {
  			logger.info("File for path : '" + path
  					+ "' not found using baseDir '" + baseDir + "'");
  		}
  
  		return is;
  	}
docs: /*
  (non-Javadoc)
  
  @see javax.servlet.ServletContext#getResourceAsStream(java.lang.String)