code: protected void scanResourcePaths(String startPath) throws IOException, SAXException {
  
          Set<String> dirList = context.getResourcePaths(startPath);
          if (dirList != null) {
              for (String path : dirList) {
                  if (path.startsWith("/WEB-INF/classes/")) {
                      // Skip: JSP.7.3.1
                  } else if (path.startsWith("/WEB-INF/lib/")) {
                      // Skip: JSP.7.3.1
                  } else if (path.endsWith("/")) {
                      scanResourcePaths(path);
                  } else if (path.startsWith("/WEB-INF/tags/")) {
                      // JSP 7.3.1: in /WEB-INF/tags only consider implicit.tld
                      if (path.endsWith("/implicit.tld")) {
                          parseTld(path);
                      }
                  } else if (path.endsWith(TLD_EXT)) {
                      parseTld(path);
                  }
              }
          }
      }
docs: Scan web application resources for TLDs, recursively.
  
  @param startPath
  the directory resource to scan
  @throws IOException
  if there was a problem scanning for or loading a TLD
  @throws SAXException
  if there was a problem parsing a TLD