IoT DAS Frameworks - IT Infra Monitoring and Analytics/IOT_Gateway/JVM_Data_Collection_Framework/source/JVMDataCollector/src/com/meritsystems/report/ReportDispatcher.java
private static void report(String classname, List<JMXContext> contexts) throws ApplicationException {
        logger.entering("report");
        Report report = null;

        try {
            report = (Report) Class.forName(classname).newInstance();
        } catch (InstantiationException e) {
            logger.severe(e, "report", "Loading class failed " + classname);
            throw new ApplicationException(e);
        } catch (IllegalAccessException e) {
            logger.severe(e, "report", "Loading class failed " + classname);
            throw new ApplicationException(e);
        } catch (ClassNotFoundException e) {
            logger.severe(e, "report", "Loading class failed " + classname);
            throw new ApplicationException(e);
        }

        report.processArguments();
        report.report(contexts, null);
        report = null;
        logger.exiting("report");
    }
/**
     * @param classname
     * @param contexts
     * @throws ApplicationException
     */
@param classname
@param contexts
@throws ApplicationException
@param classname @param contexts @throws ApplicationException
private static void report(String classname, List<JMXContext> contexts) throws ApplicationException {
        logger.entering("report");
        Report report = null;
        try {
            report = (Report) Class.forName(classname).newInstance();
        } catch (InstantiationException e) {
            logger.severe(e, "report", "Loading class failed " + classname);
            throw new ApplicationException(e);
        } catch (IllegalAccessException e) {
            logger.severe(e, "report", "Loading class failed " + classname);
            throw new ApplicationException(e);
        } catch (ClassNotFoundException e) {
            logger.severe(e, "report", "Loading class failed " + classname);
            throw new ApplicationException(e);
        }
        report.processArguments();
        report.report(contexts, null);
        report = null;
        logger.exiting("report");
    }
private static void report ( String classname , List < JMXContext > contexts ) throws ApplicationException { logger . entering ( "report" ) ; Report report = null ; try { report = ( Report ) Class . forName ( classname ) . newInstance ( ) ; } catch ( InstantiationException e ) { logger . severe ( e , "report" , "Loading class failed " + classname ) ; throw new ApplicationException ( e ) ; } catch ( IllegalAccessException e ) { logger . severe ( e , "report" , "Loading class failed " + classname ) ; throw new ApplicationException ( e ) ; } catch ( ClassNotFoundException e ) { logger . severe ( e , "report" , "Loading class failed " + classname ) ; throw new ApplicationException ( e ) ; } report . processArguments ( ) ; report . report ( contexts , null ) ; report = null ; logger . exiting ( "report" ) ; }
@param classname
 @param contexts
 @throws ApplicationException
@param classname @param contexts @throws ApplicationException