implictProduces,
FilterFactory.getRequestFilters(resourceFilters),
FilterFactory.getResponseFilters(resourceFilters));
ComponentInjector<ViewableRule> ci = new ComponentInjector(injectableContext,
ViewableRule.class);
ci.inject(r);
// The matching rule for a sub-resource template
patterns.add(new PatternRulePair<UriRule>(
new UriPattern("/([^/]+)"), r));
// The matching rule for an index template