}
}
private static Application generateApplication(UriInfo info,
AbstractResource resource, String path, WadlGenerator wadlGenerator) {
Application a = path == null ? new WadlBuilder( wadlGenerator ).generate(resource) :
new WadlBuilder( wadlGenerator ).generate(resource, path);
a.getResources().setBase(info.getBaseUri().toString());
final Resource r = a.getResources().getResource().get(0);
r.setPath(info.getBaseUri().relativize(