ReportEngineService.getInstance( ).setMaxRows( viewer.getMaxRowsOfRecords( ) );
	protected void __handleOutputReport( OutputStream out ) throws Exception	{		if ( this.documentInUrl )		{			String doc = createAbsolutePath( viewer.getReportDocument( ) );			if ( viewer.getReportletId( ) != null )			{				// Render the reportlet				getReportService( ).renderReportlet( doc,						viewer.getReportletId( ), this.options,						new ArrayList( ), out );			}			else			{				// Render the report document file				getReportService( ).renderReport( doc, null, this.options, out );			}		}		else		{			// Prepare the report parameters			Map params = __handleParameters( reportDesignHandle, null );			// Prepare the display text of report parameters			Map displayTexts = BirtUtility.getDisplayTexts( null,					(HttpServletRequest) pageContext.getRequest( ) );			// RunAndRender the report design file			getReportService( ).runAndRenderReport( reportDesignHandle, null,					this.options, params, out, new ArrayList( ), displayTexts );		}	}