private WadlGenerator loadWadlGenerator(
WadlGeneratorDescription wadlGeneratorDescription,
com.sun.jersey.server.wadl.WadlGenerator wadlGeneratorDelegate ) throws Exception {
getLog().info( "Loading wadlGenerator " + wadlGeneratorDescription.getClassName() );
final Class<?> clazz = Class.forName( wadlGeneratorDescription.getClassName(), true, Thread.currentThread().getContextClassLoader() );
final WadlGenerator generator = clazz.asSubclass( WadlGenerator.class ).newInstance();
generator.setWadlGeneratorDelegate( wadlGeneratorDelegate );
if ( wadlGeneratorDescription.getProperties() != null
&& !wadlGeneratorDescription.getProperties().isEmpty() ) {
for ( Entry<Object, Object> entry : wadlGeneratorDescription.getProperties().entrySet() ) {
setProperty( generator, entry.getKey().toString(), entry.getValue() );
}