Bug 118592 Report error
please see attached design file.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ResultIterator.java
protected int lowestGroupLevel;
	private int savedStartingGroupLevel;
	
	private DataEngineContext context;
	private RDSaveUtil rdSaveUtil;
	
	protected static Logger logger = Logger.getLogger( ResultIterator.class.getName( ) );
	/**
	 * Constructor for report query (which produces a QueryResults)
	 */
	ResultIterator( DataEngineContext context, IQueryResults queryResults,
			PreparedQuery query,
			org.eclipse.birt.data.engine.odi.IResultIterator odiResult,
			Scriptable scope ) throws DataException
	{
		assert queryResults != null
				&& query != null && odiResult != null && scope != null;
		this.queryResults = queryResults;
		this.query = query;
		this.odiResult = odiResult;
		this.scope = scope;
		this.context = context;
		IBaseQueryDefinition queryDefn = query.getQueryDefn( );
		assert queryDefn != null;
		this.useDetails = queryDefn.usesDetails( );
		this.lowestGroupLevel = queryDefn.getGroups( ).size( );
		start( );
		logger.logp( Level.FINER,
				ResultIterator.class.getName( ),
				"ResultIterator",