log.info("browsing " + hermes.getId() + ": " + destinationNode.getDestinationName() + " with user selector " + selector);
HermesBrowser.getBrowser().getActionFactory().createQueueBrowseAction(hermes, newConfig);
} 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, selector);
} 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(), selector);
}
} 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(), selector);
}
}
}
} catch (Exception ex) {
log.error(ex.getMessage(), ex);