Object paramValueObj = this.parametersAsString.get( paramName );
String paramValue = (String) this.parametersAsString .get( paramName );
	protected Map getParsedParameters( IViewerReportDesignHandle design,			Collection parameterList, HttpServletRequest request,			InputOptions options ) throws ReportServiceException	{		Map params = new HashMap( );		if ( parameterList == null || this.parametersAsString == null )			return params;		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 = this.parametersAsString.get( paramName );			if ( paramValueObj != null )			{				// if default value is Date object, put map directly				if ( paramValueObj instanceof Date )				{					params.put( paramName, paramValueObj );					continue;				}				try				{					// convert parameter to object					String format = ParameterAccessor.getFormat( request,							paramName );					if ( format == null || format.length( ) <= 0 )					{						format = parameter.getPattern( );					}					paramValueObj = DataUtil.validate(							parameter.getDataType( ), format, paramValueObj									.toString( ), locale );					params.put( paramName, paramValueObj );				}				catch ( ValidationValueException e )				{					// if in PREVIEW mode, then throw exception directly					if ( ParameterAccessor.SERVLET_PATH_PREVIEW							.equalsIgnoreCase( request.getServletPath( ) ) )					{						this.exception = e;						break;					}				}			}			else			{				params.put( paramName, null );			}		}		return params;	}