IReportEventHandler eh = ( IReportEventHandler ) getInstance( report );
IReportEventHandler eh = ( IReportEventHandler ) getInstance( report, context );
	public static void handleBeforeFactory( ReportDesignHandle report,			ExecutionContext context )	{		try		{			IReportDesign reportDesign = new ReportDesign( report );			// TODO: Wrap report			if ( handleJS( reportDesign, report.getBeforeFactory( ), context )					.didRun( ) )				return;			IReportEventHandler eh = ( IReportEventHandler ) getInstance( report );			if ( eh != null )				eh.beforeFactory( reportDesign, context.getReportContext( ) );		} catch ( Exception e )		{			log.log( Level.WARNING, e.getMessage( ), e );		}	}