Bug 212478 Exception occurs when preview the table including a Autotext
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
{
					IDataQueryDefinition query = queries[i];
					
					
					if ( query instanceof IBaseQueryDefinition )
					{
						ResultMetaData metaData = new ResultMetaData(
								(IBaseQueryDefinition) query );
						resultMetaData.put( query, metaData );
					}
				}
				registerQueryToHandle( design, queries );
				return null;
			}
		}
	}
	/**
	 * link the query and report item
	 * 
	 * @param query
	 * @param reportItem
	 */
	private void registerQueryAndElement( IDataQueryDefinition query,
			ReportItemDesign reportItem )
	{
		assert query != null && reportItem != null;
		HashMap map = report.getReportItemToQueryMap( );
		assert map != null;
		map.put( query, reportItem );
	}