docs: @SuppressWarnings("MagicNumber")
      protected Resource[] findPathMatchingResources(String locationPattern) throws IOException {
          String rootDirPath = determineRootDir(locationPattern);
          String subPattern = locationPattern.substring(rootDirPath.length());
          Resource[] rootDirResources = getResources(rootDirPath);
          Set<Resource> result = new LinkedHashSet<Resource>(16);
          for (Resource rootDirResource : rootDirResources) {
              rootDirResource = resolveRootDirResource(rootDirResource);
              if (isJarResource(rootDirResource)) {
                  result.addAll(doFindPathMatchingJarResources(rootDirResource, subPattern));
              } else {
                  result.addAll(doFindPathMatchingFileResources(rootDirResource, subPattern));
              }
          }
          return result.toArray(new Resource[0]);
      }