function paste(this,manager)

%% Paste menu callback

%% Only tsnodes can be pasted
if ~isa(manager.Root.Tsviewer.Clipboard,'tsguis.tsnode')
    return
end

%% Copy the timeseries in the cliboard and give it a name whicg is unquie
%% in the treeview
newts = manager.Root.Tsviewer.Clipboard.Timeseries.copy;
newname = sprintf('Copy_of_%s', manager.Root.Tsviewer.Clipboard.Timeseries.Name);
k = 2;
while any(strcmp(newname,get(this.getChildren,{'Label'})))
    newname = sprintf('Copy_%d_of_%s',k,...
        manager.Root.Tsviewer.Clipboard.Timeseries.Name);
    k = k+1;
end
newts.Name = newname;

%% Create new timeseries node
this.createChild(newts);