// The template is matched against the service real URLs,
// therefore the match always succeeds. The template should
// be
// matched against the url of the request instead.
template = new UriTemplate(altUrl.getFullUrl());
results = template.match(url);
if (results.size() > 0) {
// Possible match
foundService = serviceToEvaluate;
break;