ReportParameterConverter converter = new ReportParameterConverter( parameter.getPattern( ), locale );
ScalarParameterHandle parameterHandle = (ScalarParameterHandle) attrBean .findParameter( parameter.getName( ) );
	protected void prepareParameterBean( HttpServletRequest request,			IViewerReportService service, ScalarParameterBean parameterBean,			Locale locale ) throws ReportServiceException	{		ViewerAttributeBean attrBean = (ViewerAttributeBean) request				.getAttribute( "attributeBean" ); //$NON-NLS-1$		assert attrBean != null;		InputOptions options = new InputOptions( );		options.setOption( InputOptions.OPT_REQUEST, request );		Collection selectionList = service.getParameterSelectionList(				attrBean.getReportDesignHandle( request ), options,				parameterBean.getName( ) );		if ( selectionList != null )		{			ReportParameterConverter converter = new ReportParameterConverter(					parameter.getPattern( ), locale );			for ( Iterator iter = selectionList.iterator( ); iter.hasNext( ); )			{				ParameterSelectionChoice selectionItem = (ParameterSelectionChoice) iter						.next( );				String value = converter.format( selectionItem.getValue( ) );				String label = selectionItem.getLabel( );				label = ( label == null || label.length( ) <= 0 )						? value						: label;				label = ParameterAccessor.htmlEncode( label );				parameterBean.getSelectionList( ).add( label );				parameterBean.getSelectionTable( ).put( label, value );			}		}	}