catch ( EngineException e ) { log.log( Level.SEVERE, "An error happened while running the report. Cause:", e ); throw e; } catch ( Exception ex ) { log.log( Level.SEVERE, "An error happened while running the report. Cause:", ex ); throw new EngineException( "Error happened while running the report", ex ); } catch ( OutOfMemoryError err ) { log.log( Level.SEVERE, "An OutOfMemory error happened while running the report." ); throw err; } }
		void render() throws EngineException		{		try		{			IContentEmitter emitter = createContentEmitter( );			Report reportDesign = executionContext.getReport( );			String format = executionContext.getOutputFormat( );			if ( ExtensionManager.PAPER_SIZE_PAGINATION.equals( pagination ) ) //$NON-NLS-1$			{				IReportExecutor executor = createReader( );				executor = new LocalizedReportExecutor( executionContext,						executor );				executionContext.setExecutor( executor );				initializeContentEmitter( emitter, executor );				IReportLayoutEngine layoutEngine = LayoutEngineFactory						.createLayoutEngine( pagination );								OnPageBreakLayoutPageHandle handle = new OnPageBreakLayoutPageHandle(						executionContext );				layoutEngine.setPageHandler( handle );								CompositeContentEmitter outputEmitters = new CompositeContentEmitter( format );				outputEmitters.addEmitter( emitter );				outputEmitters.addEmitter( handle.getEmitter( ) );								startRender( );				layoutEngine.layout( executor, outputEmitters, false );				closeRender( );				executor.close( );			}			else			{				IReportExecutor executor = new ReportExecutor(						executionContext, reportDesign, null );				executor = new LocalizedReportExecutor( executionContext,						executor );				executionContext.setExecutor( executor );				initializeContentEmitter( emitter, executor );				// start the render				ReportContentLoader loader = new ReportContentLoader(						executionContext );				startRender( );				load( loader, emitter );				closeRender( );				executor.close( );			}		}		catch ( EngineException e )		{			log.log( Level.SEVERE,					"An error happened while running the report. Cause:", e ); //$NON-NLS-1$			throw e;		}		catch ( Exception ex )		{			log.log( Level.SEVERE,					"An error happened while running the report. Cause:", ex ); //$NON-NLS-1$			throw new EngineException(					"Error happened while running the report", ex ); //$NON-NLS-1$		}		catch ( OutOfMemoryError err )		{			log.log( Level.SEVERE,					"An OutOfMemory error happened while running the report." ); //$NON-NLS-1$			throw err;		}		}