Bug 213973 [2.2.2]ClassCastException throws out when preview a table share crosstab
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
{
			BaseQueryDefinition query;
			if ( table.useCachedResult( ) )
			{
				query = getRefenceQuery( table );
				if ( query == null )
				{
					registerUnresolvedQueryReference( table );
					return null;
				}
			}
			else
			{
				query = createQuery( table, value );
			}
			if ( query == null )
			{
				handleListingBand( table.getHeader( ), query, true, null );
				handleListingBand( table.getFooter( ), query, true, null );
			}
			else
			{
				
				for ( int i = 0; i < table.getColumnCount( ); i++ )
				{
					handleColumn( table.getColumn( i ), query );
				}
				handleListingBand( table.getHeader( ), query, true, null );
				SlotHandle groupsSlot = ( (TableHandle) table.getHandle( ) )
						.getGroups( );