code: public Set getResourcePaths(String uriInContext)
      {
          try
          {
              uriInContext=URI.canonicalPath(uriInContext);
              if (uriInContext==null)
                  return Collections.EMPTY_SET;
              Resource resource=getHttpContext().getResource(uriInContext);
              if (resource==null || !resource.isDirectory())
                  return Collections.EMPTY_SET;
              String[] contents=resource.list();
              if (contents==null || contents.length==0)
                  return Collections.EMPTY_SET;
              HashSet set = new HashSet(contents.length*2);
              for (int i=0;i<contents.length;i++)
                  set.add(URI.addPaths(uriInContext,contents[i]));
              return set;
          }
          catch(Exception e)
          {
              e.printStackTrace();
              LogSupport.ignore(log,e);
          }
          
          return Collections.EMPTY_SET;
      }
docs: /* ------------------------------------------------------------