IQueryResults actualResultSet = DataSetManager.getCurrentInstance( )
IQueryResults actualResultSet = ChartDataSetManager.getCurrentInstance( )
	protected final List getPreviewRowData( String[] columnExpression,			int rowCount, boolean isStringType ) throws ChartException	{		ArrayList dataList = new ArrayList( );				// Set thread context class loader so Rhino can find POJOs in workspace		// projects		ClassLoader oldContextLoader = Thread.currentThread( )				.getContextClassLoader( );		ClassLoader parentLoader = oldContextLoader;		if ( parentLoader == null )			parentLoader = this.getClass( ).getClassLoader( );		ClassLoader newContextLoader = DataSetManager.getCustomScriptClassLoader( parentLoader );		Thread.currentThread( ).setContextClassLoader( newContextLoader );				try		{			DataSetHandle datasetHandle = getDataSetFromHandle( );			IQueryResults actualResultSet = DataSetManager.getCurrentInstance( )					.getCacheResult( datasetHandle,							itemHandle.getPropertyHandle( ReportItemHandle.PARAM_BINDINGS_PROP )									.iterator( ),							itemHandle.getPropertyHandle( ExtendedItemHandle.FILTER_PROP )									.iterator( ),							columnExpression,							rowCount <= 0 ? getMaxRow( ) : rowCount );			if ( actualResultSet != null )			{				IBaseExpression[] expressions = extractExpressions( actualResultSet );				int columnCount = expressions.length;				IResultIterator iter = actualResultSet.getResultIterator( );				while ( iter.next( ) )				{					if ( isStringType )					{						String[] record = new String[columnCount];						for ( int n = 0; n < columnCount; n++ )						{							record[n] = iter.getString( expressions[n] );						}						dataList.add( record );					}					else					{						Object[] record = new Object[columnCount];						for ( int n = 0; n < columnCount; n++ )						{							record[n] = iter.getValue( expressions[n] );						}						dataList.add( record );					}				}				actualResultSet.close( );			}		}		catch ( BirtException e )		{			throw new ChartException( ChartReportItemPlugin.ID,					ChartException.DATA_BINDING,					e );		}		finally		{			// Restore old thread context class loader			Thread.currentThread( ).setContextClassLoader( oldContextLoader );		}				return dataList;	}