private boolean considerFacets = false;
private String var = "resources";
protected Iterator<List<ResourceMethod>> getLoop(TemplateModel model) throws TemplateException {
TreeMap<String, List<ResourceMethod>> resourcesByPath = new TreeMap<String, List<ResourceMethod>>(new ResourceMethodPathComparator());
for (RootResource rootResource : getModel().getRootResources()) {
for (ResourceMethod resource : rootResource.getResourceMethods(true)) {
if (considerFacets && !FacetFilter.accept(resource)) {
continue;