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 ScalarParameterHandle
	 */
	private ScalarParameterHandle findParameter( String paramName )
	{
		if ( paramName == null )
			return null;
		ScalarParameterHandle parameter = null;
		List parameters = null;
		
		ModuleHandle model = SessionHandleAdapter.getInstance( )
				.getReportDesignHandle( );
		if ( model != null )
		{
			parameters = model.getFlattenParameters( );
		}
		if ( parameters != null )
		{
			for ( int i = 0; i < parameters.size( ); i++ )
			{
				if ( parameters.get( i ) instanceof ScalarParameterHandle )
				{
					parameter = ( (ScalarParameterHandle) parameters.get( i ) );
				}
				if ( parameter != null
						&& paramName.equalsIgnoreCase( parameter.getName( ) ) )
				{
					break;
				}
			}
		}