function h = getRoot(this)
% GETROOT Returns the NEAREST node up in the tree hierarchy labeled as root

% If no root is found returns itself.
h = this;

% Search for the root
while ~isa(h, 'tsexplorer.Workspace') && ~isempty(h.up)
  h = h.up;
end
