code: private String parseHtml(ClassLoader classLoader, String resName) throws IOException {
          InputStream is = classLoader.getResourceAsStream(resName);
          if (is == null)     return null;
  
          BufferedReader in = new BufferedReader(new InputStreamReader(is,UTF8));
          String line;
          StringBuilder buf = new StringBuilder();
          while((line=in.readLine())!=null) {
              Matcher m = HTML_INCLUDE.matcher(line);
              if(m.lookingAt())
                  required.add(m.group(1));
              else
                  buf.append(line).append('\n');
          }
          in.close();
          return buf.toString();
      }
docs: Parses HTML files and extract dependencies.