ReportItemDesign design = (ReportItemDesign) generateBy; IBaseQueryDefinition query = design.getQuery( ); if ( query != null )
IResultSet rset = (IResultSet) resultSets.pop( ); if ( rset != null )
	protected void closeQuery( IContent content )	{		Object generateBy = content.getGenerateBy( );		if ( generateBy instanceof ReportItemDesign )		{			if ( !( generateBy instanceof ExtendedItemDesign ) )			{				ReportItemDesign design = (ReportItemDesign) generateBy;				IBaseQueryDefinition query = design.getQuery( );				if ( query != null )				{					IResultSet rset = (IResultSet) resultSets.pop( );					if ( rset != null )					{						rset.close( );					}				}			}		}	}