log.info("Looking for a scoped resource");
for (Restlet next = getNext(); next != null;) {
if (next instanceof Finder) {
Finder f = (Finder) next;
ServerResource sr = f.find(request, response);
if (sr instanceof DiscoverableResource) {
scoped = (DiscoverableResource) sr;
List<AnnotationInfo> ai = AnnotationUtils.getAnnotations(sr
.getClass());
for (AnnotationInfo i : ai) {
methods.add(i.getRestletMethod());
}
Set<Method> am = sr.getAllowedMethods();
log.info("AllowedMethods size = " + am);
}
break;
// next = ((Filter)next).getNext();
} else if (next instanceof Filter) {