HermesBrowser.getBrowser().getActionFactory().createBrowseContextAction(node.getConfig());
} else if (selectionPath.getLastPathComponent() instanceof DestinationConfigTreeNode) {
final DestinationConfigTreeNode destinationNode = (DestinationConfigTreeNode) selectionPath.getLastPathComponent();
final Hermes hermes = ((HermesTreeNode) destinationNode.getHermesTreeNode()).getHermes();
final QueueBrowseAction qBrowser = HermesBrowser.getBrowser().getOpenQueueBrowser(destinationNode.getConfig()) ;
if (qBrowser != null) {
qBrowser.refresh() ;
} else {
HermesBrowser.getBrowser().getActionFactory().createQueueBrowseAction(hermes, destinationNode.getConfig());
}
} else if (selectionPath.getLastPathComponent() instanceof RepositoryTreeNode) {
final RepositoryTreeNode repNode = (RepositoryTreeNode) selectionPath.getLastPathComponent();
final Hermes hermes = HermesBrowser.getBrowser().getBrowserTree().getHermesAsMessageFactory();
HermesBrowser.getBrowser().getActionFactory().createRepositoryBrowseAction(repNode.getRepository(), hermes);
} else if (selectionPath.getLastPathComponent() instanceof MessageStoreTreeNode) {
final MessageStoreTreeNode node = (MessageStoreTreeNode) selectionPath.getLastPathComponent();
final Hermes hermes = HermesBrowser.getBrowser().getBrowserTree().getHermesAsMessageFactory();
HermesBrowser.getBrowser().getActionFactory().createMessageStoreBrowseAction(node.getMessageStore(), hermes, null);
} else if (selectionPath.getLastPathComponent() instanceof MessageStoreQueueTreeNode) {
final MessageStoreQueueTreeNode queueNode = (MessageStoreQueueTreeNode) selectionPath.getLastPathComponent();
if (queueNode.getParent() instanceof MessageStoreTreeNode) {
final MessageStoreTreeNode storeNode = (MessageStoreTreeNode) queueNode.getParent();
final Hermes hermes = HermesBrowser.getBrowser().getBrowserTree().getHermesAsMessageFactory();
HermesBrowser.getBrowser().getActionFactory()
.createMessageStoreBrowseAction(storeNode.getMessageStore(), hermes, (Queue) queueNode.getBean(), null);
}
} else if (selectionPath.getLastPathComponent() instanceof MessageStoreTopicTreeNode) {
final MessageStoreTopicTreeNode topicNode = (MessageStoreTopicTreeNode) selectionPath.getLastPathComponent();
if (topicNode.getParent() instanceof MessageStoreTreeNode) {
final MessageStoreTreeNode storeNode = (MessageStoreTreeNode) topicNode.getParent();
final Hermes hermes = HermesBrowser.getBrowser().getBrowserTree().getHermesAsMessageFactory();
HermesBrowser.getBrowser().getActionFactory()
.createMessageStoreBrowseAction(storeNode.getMessageStore(), hermes, (Topic) topicNode.getBean(), null);
}