Set<Method> methods = new HashSet<Method>();
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) {