//
ApplicationDescription description = getApplication(info);
WadlGenerator wadlGenerator = wadlGeneratorConfig.createWadlGenerator();
Application a = path == null ? new WadlBuilder( wadlGenerator ).generate(description,resource) :
new WadlBuilder( wadlGenerator ).generate(description, resource, path);
for(Resources resources : a.getResources())
resources.setBase(info.getBaseUri().toString());
// Attach any grammar we may have
attachExternalGrammar(a, description,
info.getRequestUri());
for(Resources resources : a.getResources()) {
final Resource r = resources.getResource().get(0);
r.setPath(info.getBaseUri().relativize(info.getAbsolutePath()).toString());
// remove path params since path is fixed at this point
r.getParam().clear();