public static IHelpSet create ( HelpModule module ) { try { Class < ? extends IHelpSet > clazz = instance . map . get ( module . getFormat ( ) ) ; if ( clazz == null ) { throw new Exception ( "Unsupported help format: " + module . getFormat ( ) ) ; } Constructor < ? extends IHelpSet > ctor = clazz . getConstructor ( HelpModule . class ) ; return ctor . newInstance ( module ) ; } catch ( Exception e ) { log . error ( "Error creating help set for " + module . getUrl ( ) , e ) ; throw MiscUtil . toUnchecked ( e ) ; } }
Creates a help set .