for (RootResourceClass rootResourceClass : this.resourceClasses.roots()) {
// Map.Entry<UriTemplateRegExp, Class> eAndC = eAndCIter.next();
// UriTemplateRegExp regExp = eAndC.getKey();
// Class clazz = eAndC.getValue();
PathRegExp rrcPathRegExp = rootResourceClass.getPathRegExp();
MatchingResult matchingResult = rrcPathRegExp.match(u);
if (matchingResult == null)
continue; // doesn't match
if (matchingResult.getFinalCapturingGroup().isEmptyOrSlash())
eAndCs.add(rootResourceClass);
else if (rootResourceClass.hasSubResourceMethodsOrLocators())