ResourceRegistry resourceRegistry = context.getAttribute(ResourceRegistry.class);
Set<Class<?>> c = new HashSet<Class<?>>();
Class<?> resourceClass = searchResult.getResource().getResourceClass();
c.add(resourceClass);
logger.trace("Found the resource classes {}", c);
Application app = new WADLHandlerWADLGenerator().generate(context.getUriInfo().getBaseUri().toString(), c);
if(context.getUriInfo().getMatchedResources().size() > 1) {
// sub-resource locator so lets correct the path
app.getResources().get(0).getResource().get(0).setPath(context.getUriInfo().getMatchedURIs().get(0));
}
Set<String> httpMethods = resourceRegistry.getOptions(searchResult.getResource());
logger