IViewerReportDesignHandle design = getDesignHandle( request );
IViewerReportDesignHandle design = null; IReportRunnable reportRunnable = null;  IReportDocument reportDocumentInstance = ReportEngineService .getInstance( ).openReportDocument( this.reportDesignName, this.reportDocumentName );  if ( reportDocumentInstance != null ) { reportRunnable = reportDocumentInstance.getReportRunnable( ); reportDocumentInstance.close( ); } if ( reportRunnable != null ) design = new BirtViewerReportDesignHandle( null, reportRunnable .getReportName( ) ); else design = getDesignHandle( request );
	protected void __initParameters( HttpServletRequest request )			throws Exception	{		IViewerReportDesignHandle design = getDesignHandle( request );		InputOptions options = new InputOptions( );		options.setOption( InputOptions.OPT_REQUEST, request );		options.setOption( InputOptions.OPT_LOCALE, locale );		Collection parameterList = this.getReportService( )				.getParameterDefinitions( design, options );		// TODO: Change parameters to be Map, not HashMap		this.parameters = ( HashMap ) getParsedParameters( design,				parameterList, request, options );		this.missingParameter = validateParameters( parameterList,				this.parameters );	}