code: public Set getResourcePaths(String path, boolean searchMetaInf)
    {
      java.util.HashSet set = new java.util.HashSet();
  
      if ((WCCustomProperties.SKIP_META_INF_RESOURCES_PROCESSING) && (searchMetaInf == true)){
  
          searchMetaInf = false;
          logger.logp(Level.FINE, CLASS_NAME, "getResourcePaths", "override searchMetaInf to false becuase of custom property");
      }
      
      
      if (container != null){
          try {
              addResourcePaths(set, container, path, searchMetaInf);
          } catch (UnableToAdaptException e) {
              throw new IllegalStateException(e);
          }
          
          // PM21451 Start
          // search the static doc roots and include a search of meta-inf resources if boolean parameter is true
          // 96723: Hard code a "false" parameter to avoid searching META-INF resources a second time. The
          // resource paths are already added by Liberty specific container code.
          set.addAll(getStaticDocumentRootUtils().getResourcePaths(path,false));
  
          // look at the JSP doc roots but don't search meta-inf resources this time (meta-inf resources are common
          // to both doc roots).
          set.addAll(getJSPDocumentRootUtils().getResourcePaths(path,false));
          // PM21451 End
          
          return set;
      }
  
      java.io.File root = new java.io.File(documentRoot + path);
  
      if (root.exists())
      {
        java.io.File[] fileList = root.listFiles();
        if (fileList != null)
        {
          for (int i = 0; i < fileList.length; i++)
          {
            String resourcePath = fileList[i].getPath();
            resourcePath = resourcePath.substring(documentRoot.length());
            resourcePath = resourcePath.replace('\\', '/');
            if (fileList[i].isDirectory())
            {
              if (resourcePath.endsWith("/") == false)
              {
                resourcePath += "/";
              }
            }
            set.add(resourcePath);
          }
        }
      }
      return (set);
    }
docs: /*
  (non-Javadoc)
  
  @see javax.servlet.ServletContext#getResourcePaths(java.lang.String)