Iterator paramIr = null; if ( parameterList != null ) paramIr = parameterList.iterator( );
	protected void parseConfigVars( HttpServletRequest request )	{		// get report config filename		String reportConfigName = this.reportDesignName.replaceFirst(				IBirtConstants.SUFFIX_DESIGN_FILE,				IBirtConstants.SUFFIX_DESIGN_CONFIG );		// Generate the session handle		SessionHandle sessionHandle = DesignEngine.newSession( ULocale				.getDefault( ) );		ReportDesignHandle handle = null;		try		{			this.configMap = new HashMap( );			// Open report config file			handle = sessionHandle.openDesign( reportConfigName );			// initial config map			if ( handle != null )			{				Iterator paramIr = null;				if ( parameterList != null )					paramIr = parameterList.iterator( );				Iterator configVars = handle.configVariablesIterator( );				while ( configVars != null && configVars.hasNext( ) )				{					ConfigVariableHandle configVar = (ConfigVariableHandle) configVars							.next( );					if ( configVar != null && configVar.getName( ) != null )					{						// check the parameter whether exist or not						String paramName = getParameterName( configVar								.getName( ) );						Object paramValue = configVar.getValue( );						while ( paramIr != null && paramName != null								&& paramValue != null && paramIr.hasNext( ) )						{							ParameterDefinition parameterObj = (ParameterDefinition) paramIr									.next( );							if ( paramName.equals( parameterObj.getName( ) ) )							{								ReportParameterConverter converter = new ReportParameterConverter(										parameterObj.getPattern( ), ULocale.US );								paramValue = converter.parse( paramValue										.toString( ), parameterObj										.getDataType( ) );								break;							}						}						if ( paramName != null && paramName.length( ) > 0								&& paramValue != null )						{							this.configMap.put( paramName, paramValue );						}					}				}				handle.close( );			}		}		catch ( Exception e )		{			try			{				if ( handle != null )					handle.close( );			}			catch ( Exception err )			{			}		}	}