code: public URL getResource(String name)
    {
      Path path;
  
      path = getPath(name);
  
      if (path != null && path.exists()) {
        try {
          return path.getNetURL();
        } catch (Exception e) {
          log.log(Level.FINER, e.toString(), e);
        }
      }
  
      return null;
    }
docs: Returns the resource
  
  @param name name of the resource