private static WadlGenerator loadWadlGenerator(
WadlGeneratorDescription wadlGeneratorDescription,
com.sun.jersey.server.wadl.WadlGenerator wadlGeneratorDelegate ) throws Exception {
LOGGER.info( "Loading wadlGenerator " + wadlGeneratorDescription.getGeneratorClass().getName() );
final WadlGenerator generator = wadlGeneratorDescription.getGeneratorClass().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() );
}