IGetParameterDefinitionTask task = getParameterDefinitionTask( design, runOptions ); ViewerAttributeBean bean = getViewerAttrBean( runOptions ); if ( bean != null ) task.setParameterValues( bean.getParameters( ) );
IGetParameterDefinitionTask task = null; try { task = getParameterDefinitionTask( design, runOptions ); if ( task != null ) { ViewerAttributeBean bean = getViewerAttrBean( runOptions ); if ( bean != null ) task.setParameterValues( bean.getParameters( ) );
	public Collection getParameterSelectionList(			IViewerReportDesignHandle design, InputOptions runOptions,			String paramName ) throws ReportServiceException	{		IGetParameterDefinitionTask task = getParameterDefinitionTask( design,				runOptions );		ViewerAttributeBean bean = getViewerAttrBean( runOptions );		if ( bean != null )			task.setParameterValues( bean.getParameters( ) );		Collection selectionList = task.getSelectionList( paramName );		return convertEngineParameterSelectionChoice( selectionList );	}