HttpServletRequest request = (HttpServletRequest) options .getOption( InputOptions.OPT_REQUEST ); Locale locale = (Locale) options.getOption( InputOptions.OPT_LOCALE ); Boolean isMasterPageContent = (Boolean) options .getOption( InputOptions.OPT_IS_MASTER_PAGE_CONTENT ); Boolean svgFlag = (Boolean) options .getOption( InputOptions.OPT_SVG_FLAG ); String format = (String) options .getOption( InputOptions.OPT_RENDER_FORMAT ); Boolean isRtl = (Boolean) options.getOption( InputOptions.OPT_RTL ); try { IReportRunnable runnable = (IReportRunnable) design .getDesignObject( );  ReportEngineService.getInstance( ).runAndRenderReport( request, runnable, out, format, locale, isRtl.booleanValue( ), parameters, isMasterPageContent.booleanValue( ), svgFlag.booleanValue( ) ); } catch ( RemoteException e ) { throw new ReportServiceException( e.getLocalizedMessage( ) ); }
runAndRenderReport( design, outputDocName, options, parameters, out, activeIds, null );
	public void runAndRenderReport( IViewerReportDesignHandle design,			String outputDocName, InputOptions options, Map parameters,			OutputStream out, List activeIds ) throws ReportServiceException	{		// TODO: outputDocName is not used...		HttpServletRequest request = (HttpServletRequest) options				.getOption( InputOptions.OPT_REQUEST );		Locale locale = (Locale) options.getOption( InputOptions.OPT_LOCALE );		Boolean isMasterPageContent = (Boolean) options				.getOption( InputOptions.OPT_IS_MASTER_PAGE_CONTENT );		Boolean svgFlag = (Boolean) options				.getOption( InputOptions.OPT_SVG_FLAG );		String format = (String) options				.getOption( InputOptions.OPT_RENDER_FORMAT );		Boolean isRtl = (Boolean) options.getOption( InputOptions.OPT_RTL );		try		{			IReportRunnable runnable = (IReportRunnable) design					.getDesignObject( );			ReportEngineService.getInstance( ).runAndRenderReport( request,					runnable, out, format, locale, isRtl.booleanValue( ),					parameters, isMasterPageContent.booleanValue( ),					svgFlag.booleanValue( ) );		}		catch ( RemoteException e )		{			throw new ReportServiceException( e.getLocalizedMessage( ) );		}	}