code: protected ResourceEntry findResourceInternal(File file, String path){
          ResourceEntry entry = new ResourceEntry();
          try {
              entry.source = getURI(new File(file, path));
              entry.codeBase = getURL(new File(file, path), false);
          } catch (MalformedURLException e) {
              return null;
          }   
          return entry;
      }
docs: Find specified resource in local repositories. This block
  will execute under an AccessControl.doPrivilege block.
  
  @return the loaded resource, or null if the resource isn't found