for (final AbstractSubResourceMethod method : this.resource.getSubResourceMethods()) {
UriTemplate t = new PathTemplate(method.getPath().getValue());
PathPattern p = new PathPattern(t, "(/)?");
ResourceMethod rm = new ResourceHttpMethod(df, ff, t, method);
addToPatternMethodMap(patternMethodMap, p, rm);
}
for (Map.Entry<PathPattern, ResourceMethodMap> e : patternMethodMap.entrySet()) {
if (implictProduces != null) {