if ( bandParent instanceof IGroupContent )
while ( bandParent instanceof IGroupContent )
	private boolean isAggregatable( ITextContent text )	{		Object generateBy = text.getGenerateBy( );		//The data item should not have query of itself.		DataItemDesign data = ( DataItemDesign )generateBy;		if ( data.getQuery( ) != null )		{			return false;		}		IElement parent = text.getParent( );		while( parent != null )		{			// The data item should not extends from a container which is			// not a table.			if ( parent instanceof IContent )			{				IContent content = (IContent)parent;				ReportItemDesign design = ( ReportItemDesign )content.getGenerateBy( );				if ( design.getQuery( ) != null )				{					return false;				}			}			// The data item should be in table header/footer or group			// header/footer and its query extends from this table			if ( parent instanceof IBandContent )			{				IBandContent bandContent = (IBandContent )parent;				BandDesign bandDesing = (BandDesign) bandContent						.getGenerateBy( );				if ( bandDesing.getBandType( ) == BandDesign.BAND_HEADER					 || bandDesing.getBandType( ) == BandDesign.BAND_FOOTER					 || bandDesing.getBandType( ) == BandDesign.GROUP_HEADER					 || bandDesing.getBandType( ) == BandDesign.GROUP_FOOTER)				{										IElement bandParent = bandContent.getParent( );					if ( bandParent instanceof IGroupContent )					{						bandParent = bandParent.getParent( );					}					if ( bandParent instanceof ITableContent )					{						return true;					}				}			}			parent = parent.getParent( );		}		return false;	}