int groupIndex = -1;
/*		int groupIndex = -1;
	static IQuery.GroupSpec groupDefnToSpec( Context cx,			IGroupDefinition src, String columnName, int index )			throws DataException	{		int groupIndex = -1;		String groupKey = src.getKeyColumn();		boolean isComplexExpression = false;		if ( groupKey == null || groupKey.length() == 0 )		{			// Group key expressed as expression; convert it to column name			// TODO support key expression in the future by creating implicit			// computed columns			ColumnInfo groupKeyInfo = getColInfoFromJSExpr( cx,				src.getKeyExpression( ) );			//getColInfoFromJSExpr( cx,src.getKeyExpression( ) );			groupIndex = groupKeyInfo.getColumnIndex( );			groupKey = groupKeyInfo.getColumnName();		}		if ( groupKey == null && groupIndex < 0 )		{			ColumnInfo groupKeyInfo = new ColumnInfo(index, columnName );			groupIndex = groupKeyInfo.getColumnIndex( );			groupKey = groupKeyInfo.getColumnName();			isComplexExpression = true;		}				IQuery.GroupSpec dest = new IQuery.GroupSpec( groupIndex, groupKey );		dest.setName( src.getName() );		dest.setInterval( src.getInterval());		dest.setIntervalRange( src.getIntervalRange());		dest.setIntervalStart( src.getIntervalStart());		dest.setSortDirection( src.getSortDirection());		dest.setFilters( src.getFilters());		dest.setSorts( src.getSorts() );		dest.setIsComplexExpression( isComplexExpression );		return dest;	}