code: public URL getResource(String path) throws MalformedURLException {
  
  		URL url = null;
  		File file = new File(baseDir + path);
  		if (file.exists()) {
  			url = file.toURI().toURL();
  		}
  		return url;
  	}
docs: /*
  (non-Javadoc)
  
  @see javax.servlet.ServletContext#getResource(java.lang.String)