public void actionPerformed(TreePath selectionPath) {
if (selectionPath != null) {
try {
if (selectionPath.getLastPathComponent() instanceof NamingConfigTreeNode) {
final NamingConfigTreeNode node = (NamingConfigTreeNode) selectionPath.getLastPathComponent();
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) {