code: protected File findFile(List<String> loadPaths, String moduleName) {
          String fileName = normalizeName(moduleName);
          File file = new File( moduleName );
          if ( file.isAbsolute() ) {
              if ( file.exists() ) {
                  return file;
              }
          }
          for (String loadPath : loadPaths) {
              // require('foo');
              file = new File(loadPath, fileName);
              // foo.js is in the require path
              if (file.exists()) break;
          }
          return file;
      }
docs: Finds the module file based on the known load paths.
  
  @param loadPaths the list of load paths to search
  @param moduleName the name of the module to find
  @return the File if found, else null