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
{
					
					return parentQuery;
				}
				
				return createSubQuery( item, parentQuery );
			}
			ReportItemHandle designHandle = (ReportItemHandle) handle;
			DataSetHandle dsHandle = designHandle.getDataSet( );
			if ( dsHandle == null )
			{
				
				String dsName = (String) designHandle
						.getProperty( ReportItemHandle.DATA_SET_PROP );
				if ( dsName != null && dsName.length( ) > 0 )
				{
					context.addException( item.getHandle( ),
							new EngineException(
									MessageConstants.UNDEFINED_DATASET_ERROR,
									dsName ) );
				}
				
				
				if ( !needQuery( item, parentQuery ) )
				{
					
					return parentQuery;
				}
				if ( parent instanceof CubeQueryDefinition )
				{