}
private ApplicationDescription createApplicationDescription( String[] paths, WadlGenerator wadlGenerator ) throws MojoExecutionException {
final Map<String, Object> map = new HashMap<String, Object>();
map.put( PackagesResourceConfig.PROPERTY_PACKAGES, paths );
final ResourceConfig rc = new PackagesResourceConfig( map );
final Set<AbstractResource> s = new HashSet<AbstractResource>();
for (Class<?> c : rc.getRootResourceClasses()) {
getLog().debug( "Adding class " + c.getName() );
s.add( IntrospectionModeller.createResource(c) );
}
return new WadlBuilder( wadlGenerator ).generate( null, s );
}