rmm.sort();
rulesMap.put(p,
new RightHandPathRule(
config.getFeature(ResourceConfig.FEATURE_REDIRECT),
p.getTemplate().endsWithSlash(),
new HttpMethodRule(rmm, implictProduces, true)));
}
// Create the rules for the HTTP methods
methodMap.sort();
if (!methodMap.isEmpty()) {
// No need to adapt with the RightHandPathRule as the URI path
// will be consumed when such a rule is accepted
rulesMap.put(PathPattern.EMPTY_PATH, new HttpMethodRule(methodMap, implictProduces));
}
// Create the atomic rules, at most only one will be matched
UriRules<UriRule> atomicRules = UriRulesFactory.create(rulesMap);