Object jsObject = scriptContext.javaToJs( object ); if ( jsObject instanceof Scriptable ) { scriptContext.enterScope( (Scriptable) jsObject ); } else { scriptContext.enterScope( ); }
scriptContext.enterScope( );
	public void newScope( Object object )	{		Object jsObject = scriptContext.javaToJs( object );		if ( jsObject instanceof Scriptable )		{			scriptContext.enterScope( (Scriptable) jsObject );		}		else		{			scriptContext.enterScope( );		}	}