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;
    }
Returns the set of rules that match the destination path (resource location)
being access by the request.
@param config
@param destination
gateway/engine/policies/src/main/java/io/apiman/gateway/engine/policies/TimeRestrictedAccessPolicy.java