assert parameterList != null; assert parametersAsString != null;
Map params = new HashMap( ); if ( parameterList == null || this.parametersAsString == null ) return params;
	protected Map getParsedParameters( IViewerReportDesignHandle design,			Collection parameterList, HttpServletRequest request,			InputOptions options ) throws ReportServiceException	{		assert parameterList != null;		assert parametersAsString != null;		Map params = new HashMap( );		for ( Iterator iter = parameterList.iterator( ); iter.hasNext( ); )		{			ScalarParameterHandle parameter = null;			Object parameterObj = iter.next( );			if ( parameterObj instanceof ScalarParameterHandle )			{				parameter = (ScalarParameterHandle) parameterObj;			}			// if current object is not Scalar parameter handle, then skip it			if ( parameter == null )				continue;			String paramName = parameter.getName( );			Object paramValueObj = parametersAsString.get( paramName );			if ( paramValueObj != null )			{				// Convert locale string to object				try				{					paramValueObj = ParameterValidationUtil.validate( parameter							.getDataType( ), parameter.getPattern( ),							paramValueObj.toString( ), locale );					params.put( paramName, paramValueObj );				}				catch ( ValidationValueException e )				{					// if in RUN mode, then throw exception directly					if ( ParameterAccessor.SERVLET_PATH_RUN							.equalsIgnoreCase( request.getServletPath( ) ) )					{						this.exception = e;						break;					}				}			}			else			{				params.put( paramName, null );			}		}		return params;	}