Bug 206285 Rename the report contain parameter will lead to the report cannot be preview[0705]
Description: Rename the report will lead to the report cannot be preview[0705] Step: 1. New a report contain a parameter named R1. 2. Preview it. 3. Rename the report as R2 4. Preview it again. Actual result: Step 2 is ok. But the step 4 will pop up an error and said that the report does not exist or contains errors. Expected result: The report can be preview when rename it.
UI/org.eclipse.birt.report.designer.ui.preview.web/src/org/eclipse/birt/report/designer/ui/preview/editors/ReportPreviewFormPage.java
return configVars;
	}
	/**
	 * Delete the last "_" part
	 * 
	 * @param name
	 * @return String
	 */
	private String prepareConfigVarName( String name )
	{
		int index = name.lastIndexOf( "_" ); 
		return name.substring( 0, index );
	}
	/**
	 * if parameter existed in config file, return the correct parameter name
	 * 
	 * @param configVarName
	 * @return String
	 */
	private String getParameterName( String configVarName )
	{
		String paramName = null;
		List parameters = null;
		
		ModuleHandle model = SessionHandleAdapter.getInstance( )
				.getReportDesignHandle( );
		if ( model != null )
		{
			parameters = model.getFlattenParameters( );
		}