? resources.get(0) : null;
}
SortedMap<ClassResourceInfo, MultivaluedMap<String, String>> candidateList =
new TreeMap<ClassResourceInfo, MultivaluedMap<String, String>>(
new ClassResourceInfoComparator());
for (ClassResourceInfo resource : resources) {
MultivaluedMap<String, String> map = new MetadataMap<String, String>();
if (resource.getURITemplate().match(path, map)) {
candidateList.put(resource, map);