Bug 168318 [regression]Print doesn't work correctly when preview attached file through external browser[00]
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
this( null, taskID );
	}
	/**
	 * create a new context. Call close to finish using the execution context
	 */
	public ExecutionContext( IReportEngine engine, int taskID )
	{
		this.engine = engine;
		taskIDString = "Task" + new Integer( taskID ).toString( ); 
		locale = Locale.getDefault( );
		ScriptableObject rootScope = null;
		if ( engine != null )
		{
			Object scope = engine.getRootScope( );
			if ( scope instanceof ScriptableObject )
			{
				rootScope = (ScriptableObject) scope;
			}
		}
		if ( rootScope != null )
		{
			scriptContext = new ScriptContext( rootScope );
		}
		else
		{
			scriptContext = new ScriptContext( );
		}
		initailizeScriptContext( scriptContext.getContext( ), scriptContext
				.getRootScope( ) );