final PathPattern p = getPattern(path, o.getClass());
if (isPatternValid(p, o.getClass())) {
rules.put(p, new RightHandPathRule(
resourceConfig.getFeature(ResourceConfig.FEATURE_REDIRECT),
p.getTemplate().endsWithSlash(),
new ResourceObjectRule(p.getTemplate(), o)));
}
}