code: protected void findResourcesOfType(File cacheSubDirectory,
              ResourceType resourceType,
              List<CachedResource> cachedResource) {
          for (File resourceFile : cacheSubDirectory.listFiles()) {
              if (resourceFile.isDirectory()) {
                  StringBuilder builder = new StringBuilder();
                  builder.append(resourceFile.getAbsolutePath());
                  builder.append(File.separator);
                  builder.append(DEFAULT_RESOURCE_FILE_NAME);
                  builder.append(resourceType.getResourceExtension());
                  builder.append(SHA256_EXTENSION);
  
                  String hash = null;
                  try {
                      hash = readFileToString(new File(builder
                              .toString()));
                  } catch (IOException e) {
                      // the hash is not required for the cached resource, so proceed
                  }
  
                  cachedResource.add(new CachedResource(resourceFile,
                          resourceFile.getName(), resourceType, hash));
              }
          }
      }
docs: Find resources under a particular cache sub-directory identified by the
  {@link ResourceType} <tt>resourceType</tt>.
  
  @param cacheSubDirectory {@link File}, the cache sub-directory
  @param resourceType {@link ResourceType}, the resource type
  @param cachedResource {@link List} of {@link CachedResource}, the list
  of cached resources that are found