code: private List<TimeRestrictedAccess> getRulesMatchingPath(TimeRestrictedAccessConfig config,
              String destination) {
          List<TimeRestrictedAccess> rulesForPath = new ArrayList<>();
          for (TimeRestrictedAccess rule : config.getRules()) {
              if (destination.matches(rule.getPathPattern())){
                  rulesForPath.add(rule);
              }
          }
          return rulesForPath;
      }
docs: Returns the set of rules that match the destination path (resource location)
  being access by the request.
  @param config
  @param destination