code: @Override
      public Iterator<WsResource> matchResource(String resourceGroupName, String resourceRegex, int limit) {
          if (resourceGroupName == null)
              throw new NullPointerException("Resource group required");
  
          List<File> path = null;
          path = resourceGroups.get(resourceGroupName);
  
          if (path == null) {
              String resolveName = "${" + resourceGroupName + "}";
              String resourceListNames = SymbolRegistry.getRegistry().resolveSymbolicString(resolveName);
              if (resourceListNames != null && (resourceListNames.equals(resolveName) == false)) {
                  String[] names = resourceListNames.split("\\s*,\\s*");
                  path = new ArrayList<File>();
                  for (String filePath : names) {
                      path.add(new File(filePath));
                  }
                  resourceGroups.put(resourceGroupName, path);
              } else {
                  path = resourcePaths;
              }
          }
  
          List<File> matches = Collections.emptyList();
  
          if (path.size() > 1) {
              matches = new ArrayList<File>();
              for (File dir : path) {
                  matches.addAll(FileLocator.getMatchingFiles(dir, resourceRegex));
              }
          } else if (path.size() == 1) {
              matches = FileLocator.getMatchingFiles(path.get(0), resourceRegex);
          }
  
          return new IteratorWrapper(matches.iterator(), bootstrapLib, limit);
      }
docs: {@inheritDoc}