final RepositoryTreeNode node = (RepositoryTreeNode) getSelectionPath().getLastPathComponent();
try {
node.getRepository().addMessages(messages.getHermes(), messages.getSelectedMessages());
} catch (JMSException e) {
throw new HermesRuntimeException(e);
}
} else if (getSelectionPath().getLastPathComponent() instanceof MessageStoreTreeNode) {
final MessageStoreTreeNode node = (MessageStoreTreeNode) getSelectionPath().getLastPathComponent();
HermesBrowser.getBrowser().getThreadPool().invokeLater(new AddToMessageStoreTask(node.getMessageStore(), messages.getSelectedMessages()));