String labelExpString = ( (ScalarParameterHandle) param ) .getLabelExpr( ); if ( labelExpString == null )
String labelExpString = ((ScalarParameterHandle)param).getLabelExpr();  if (labelExpString != null && labelExpString.length() > 0)
	public void evaluateQuery( String parameterGroupName )	{		CascadingParameterGroupHandle parameterGroup = getCascadingParameterGroup( parameterGroupName );		if ( dataCache == null )			dataCache = new HashMap( );		if ( parameterGroup == null )			return;		DataSetHandle dataSet = parameterGroup.getDataSet( );		if ( dataSet != null )		{			try			{				// Handle data source and data set				DataEngine dataEngine = getDataEngine( );				DataSourceHandle dataSource = dataSet.getDataSource( );				try				{					dataEngine							.defineDataSource( ModelDteApiAdapter.getInstance( )									.createDataSourceDesign( dataSource ) );					dataEngine.defineDataSet( ModelDteApiAdapter.getInstance( )							.createDataSetDesign( dataSet ) );				}				catch ( BirtException e )				{					log.log( Level.SEVERE, e.getMessage( ) );				}				QueryDefinition queryDefn = new QueryDefinition( );				queryDefn.setDataSetName( dataSet.getName( ) );				SlotHandle parameters = parameterGroup.getParameters( );				Iterator iter = parameters.iterator( );				if ( labelMap == null )					labelMap = new HashMap( );				if ( valueMap == null )					valueMap = new HashMap( );				while ( iter.hasNext( ) )				{					Object param = iter.next( );					if ( param instanceof ScalarParameterHandle )					{						String valueExpString = ( (ScalarParameterHandle) param )								.getValueExpr( );						Object valueExpObject = new ScriptExpression(								valueExpString );						valueMap.put( parameterGroup.getName( ) + "_"								+ ( (ScalarParameterHandle) param ).getName( ),								valueExpObject );						queryDefn.getRowExpressions( ).add( valueExpObject );						String labelExpString = ( (ScalarParameterHandle) param )								.getLabelExpr( );						if ( labelExpString == null )						{							labelExpString = valueExpString;						}						Object labelExpObject = new ScriptExpression(								labelExpString );						labelMap.put( parameterGroup.getName( ) + "_"								+ ( (ScalarParameterHandle) param ).getName( ),								labelExpObject );						queryDefn.getRowExpressions( ).add( labelExpObject );						GroupDefinition groupDef = new GroupDefinition( );						groupDef.setKeyExpression( valueExpString );						queryDefn.addGroup( groupDef );					}				}				IPreparedQuery query = dataEngine.prepare( queryDefn );				IQueryResults result = query.execute( executionContext						.getSharedScope( ) );				IResultIterator resultIter = result.getResultIterator( );				dataCache.put( parameterGroup.getName( ), resultIter );				return;			}			catch ( BirtException ex )			{				ex.printStackTrace( );			}		}		dataCache.put( parameterGroup.getName( ), null );	}