Bug 201013 [Automation][Regression]Invalid group key column name: _{$TEMP_GROUP_1$} occurs when preview attached report[1102]
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/QueryExecutor.java
{
			 
			
			
			
			queryScope = newSubScope( parentScope );
			queryScope.setPrototype( dataSet.getJSDataSetObject( ) );
		}
		return queryScope;
	}
	/**
	 * Creates a subscope within parent scope
	 * @param parentAndProtoScope parent scope. If null, the shared top-level scope is used as parent
	 */
	private Scriptable newSubScope( Scriptable parentAndProtoScope )
	{
		if ( parentAndProtoScope == null )
			parentAndProtoScope = sharedScope;
		Context cx = Context.enter( );
		try
		{
			Scriptable scope = cx.newObject( parentAndProtoScope );
			scope.setParentScope( parentAndProtoScope );
			scope.setPrototype( parentAndProtoScope );
			return scope;
		}
		finally
		{
			Context.exit( );
		}