if ( detail != null && detail.getContentCount( ) != 0 )
if ( detail == null || detail.getContentCount( ) == 0 )
		public Object visitTableItem( TableItemDesign table, Object value )		{			BaseQueryDefinition query = prepareVisit( table );			if ( query == null )			{				pushCurrentCondition( true );				handleListingBand( table.getHeader( ), value );				popCurrentCondition( );								pushCurrentCondition( true );				handleListingBand( table.getFooter( ), value );				popCurrentCondition( );							}			else			{				transformExpressions( table );								for( int i = 0; i < table.getColumnCount( ); i++ )				{					handleColumn( table.getColumn( i ) );				}								pushCurrentCondition( true );				handleListingBand( table.getHeader( ), value );								SlotHandle groupsSlot = ( (TableHandle) table.getHandle( ) )						.getGroups( );				for ( int i = 0; i < table.getGroupCount( ); i++ )				{					handleListingGroup( table.getGroup( i ),							(GroupHandle) groupsSlot.get( i ), value );				}				popCurrentCondition( );				BandDesign detail = table.getDetail( );				if ( detail != null && detail.getContentCount( ) != 0 )				{					query.setUsesDetails( true );				}								pushCurrentCondition( false );				handleListingBand( table.getDetail( ), value );				popCurrentCondition( );								pushCurrentCondition( true );								handleListingBand( table.getFooter( ), value );				popCurrentCondition( );			}			finishVisit( query );			return value;		}