Overrides the current scope with the given source and returns that (current) scope.
the current scope that was overridden or null if no scope is currently active
TreeState that should be used to supply State value